1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

Fix coredump from Samba4 torture suite.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent f91da7d99b
commit 640bc276ba
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);