mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Fix crash in smbcontrol Gerald pointed out when no parameter given to debug.
Jeremy.
This commit is contained in:
parent
4306eff6f7
commit
ef687a2f6b
@ -171,7 +171,7 @@ static int parse_type(char *mtype)
|
||||
/****************************************************************************
|
||||
do command
|
||||
****************************************************************************/
|
||||
static BOOL do_command(char *dest, char *msg_name, char *params[])
|
||||
static BOOL do_command(char *dest, char *msg_name, char **params)
|
||||
{
|
||||
int i, n, v;
|
||||
int mtype;
|
||||
@ -186,7 +186,7 @@ static BOOL do_command(char *dest, char *msg_name, char *params[])
|
||||
|
||||
switch (mtype) {
|
||||
case MSG_DEBUG:
|
||||
if (!params[0]) {
|
||||
if (!params || !params[0]) {
|
||||
fprintf(stderr,"MSG_DEBUG needs a parameter\n");
|
||||
return(False);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user