File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ struct cli_def {
7171 /* internal buffers */
7272 void * conn ;
7373 void * service ;
74- char * commandname ; // temporary buffer for cli_command_name() to prevent leak
74+ // char *commandname; // temporary buffer for cli_command_name() to prevent leak
7575 char * buffer ;
7676 unsigned buf_size ;
7777 struct timeval timeout_tm ;
@@ -102,6 +102,7 @@ enum command_types {
102102
103103struct cli_command {
104104 char * command ;
105+ char * full_command_name ;
105106 int (* callback )(struct cli_def * , const char * , char * * , int );
106107 unsigned int unique_len ;
107108 char * help ;
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ rm -rf $RPM_BUILD_ROOT
6767%defattr(-, root, root)
6868
6969%changelog
70+ * Wed Jan 27 2021 Rob Sa ders <rsanders@forcepoint.com> 1.10.5
71+ - Fix possible error where cli_command_name() returns a NULL by
72+ generating full command name when a command is registered.
73+ Note - removed cli->commandname member
74+
7075* Thu Jan 14 2021 Rob Sanders <rsanders@forcepoint.com> 1.10.5
7176- Fix issue where the help for 'long command name' winds up running into
7277 the actual help text w/o any spaces. Now a long command will be on a line
You can’t perform that action at this time.
0 commit comments