mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Fix coredump from Samba4 torture suite.
Jeremy. (This used to be commit 9c1bab944526270d2ad79c75894c33f58f8e3845)
This commit is contained in:
parent
c699cb78ac
commit
273479391f
@ -405,6 +405,8 @@ files_struct *file_fsp(char *buf, int where)
|
||||
if (chain_fsp)
|
||||
return chain_fsp;
|
||||
|
||||
if (!buf)
|
||||
return NULL;
|
||||
fnum = SVAL(buf, where);
|
||||
|
||||
for (fsp=Files;fsp;fsp=fsp->next, count++) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user