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:
parent
f91da7d99b
commit
640bc276ba
@ -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…
Reference in New Issue
Block a user