Don't try to run anything if user just presses return at rpcclient prompt.
add_command_set(samr_commands);
add_command_set(separator_command);
-
/* Do anything specified with -c */
if (cmdstr[0]) {
char *cmd;
return 0;
}
-
/* Loop around accepting commands */
while(1) {
pstring prompt;
line = smb_readline(prompt, NULL, completion_fn);
- process_cmd(&cli, line);
+ if (line == NULL)
+ break;
+
+ if (line[0] != '\n')
+ process_cmd(&cli, line);
}
-}
+ return 0;
+}