summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-05-14 22:37:01 +0000
committerJeremy Allison <jra@samba.org>2001-05-14 22:37:01 +0000
commitbc51512aadc705cbe5c4d666b7d45271e60d3f00 (patch)
tree50126f4ea1999db8092bb706001e375444c221ba /source3/utils
parent62b02758809fb91b25d909f83d3e68f8ab75eac7 (diff)
downloadsamba-bc51512aadc705cbe5c4d666b7d45271e60d3f00.tar.gz
samba-bc51512aadc705cbe5c4d666b7d45271e60d3f00.tar.bz2
samba-bc51512aadc705cbe5c4d666b7d45271e60d3f00.zip
Fix crash in smbcontrol Gerald pointed out when no parameter given to debug.
Jeremy. (This used to be commit ef687a2f6ba8143dcc041b2b629542c3ea9e3966)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 09f0e3090b..5bb4e602f0 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -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);
}