1
0
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:
Jeremy Allison 2003-09-17 19:36:38 +00:00
parent c699cb78ac
commit 273479391f
2 changed files with 5 additions and 0 deletions

View File

@ -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++) {

View File

@ -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);