mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +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
|
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 i, n, v;
|
||||||
int mtype;
|
int mtype;
|
||||||
@ -186,7 +186,7 @@ static BOOL do_command(char *dest, char *msg_name, char *params[])
|
|||||||
|
|
||||||
switch (mtype) {
|
switch (mtype) {
|
||||||
case MSG_DEBUG:
|
case MSG_DEBUG:
|
||||||
if (!params[0]) {
|
if (!params || !params[0]) {
|
||||||
fprintf(stderr,"MSG_DEBUG needs a parameter\n");
|
fprintf(stderr,"MSG_DEBUG needs a parameter\n");
|
||||||
return(False);
|
return(False);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user