diff options
author | Jeremy Allison <jra@samba.org> | 2003-09-17 19:36:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-09-17 19:36:53 +0000 |
commit | 53185ba285991b24d88f5b3c6c4e9e0eed1c1431 (patch) | |
tree | 0408912733f1740489c19d220ec56c872013bb8d /source3/smbd/nttrans.c | |
parent | 9dab796ed56ffea2e373df5be1ec17a77f600285 (diff) | |
download | samba-53185ba285991b24d88f5b3c6c4e9e0eed1c1431.tar.gz samba-53185ba285991b24d88f5b3c6c4e9e0eed1c1431.tar.bz2 samba-53185ba285991b24d88f5b3c6c4e9e0eed1c1431.zip |
Fix coredump from Samba4 torture suite.
Jeremy.
(This used to be commit 640bc276ba3d1ab83cd8994bddd64fd745f75101)
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index f8bd3ae15f..1c50744947 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1472,6 +1472,9 @@ static int call_nt_transact_notify_change(connection_struct *conn, char *inbuf, files_struct *fsp; uint32 flags; + if(setup_count < 6) + return ERROR_DOS(ERRDOS,ERRbadfunc); + fsp = file_fsp(setup,4); flags = IVAL(setup, 0); |