summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/smbcontrol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index d622edd69f..ec4f41cad6 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -633,6 +633,11 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
return False;
break;
case MSG_PRINTER_DRVUPGRADE:
+ if (!params || !params[0]) {
+ fprintf(stderr,"drvupgrade needs a parameter\n");
+ return(False);
+ }
+
if (!send_message(dest, MSG_PRINTER_DRVUPGRADE, params[0], 0, False))
return False;
break;