summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-01-10 06:40:47 +0000
committerAndrew Tridgell <tridge@samba.org>1999-01-10 06:40:47 +0000
commit95aa0b95dabde351b0f257a1da00b06b4a0fa915 (patch)
tree895dba2be079db2ea27e5d02a7bd6131a7d49cbb
parentabd3020c6b4292f1bb2db146ca64b10cb8befd0a (diff)
downloadsamba-95aa0b95dabde351b0f257a1da00b06b4a0fa915.tar.gz
samba-95aa0b95dabde351b0f257a1da00b06b4a0fa915.tar.xz
samba-95aa0b95dabde351b0f257a1da00b06b4a0fa915.zip
don't panic on a null params in api_reply(). instead just return an
error (smbtorture sends null params)
-rw-r--r--source/smbd/ipc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c
index 58a2215e6b1..12a086c98c7 100644
--- a/source/smbd/ipc.c
+++ b/source/smbd/ipc.c
@@ -3407,7 +3407,10 @@ static int api_reply(connection_struct *conn,uint16 vuid,char *outbuf,char *data
BOOL reply=False;
int i;
- SMB_ASSERT(params != 0);
+ if (!params) {
+ DEBUG(0,("ERROR: NULL params in api_reply()\n"));
+ return 0;
+ }
api_command = SVAL(params,0);