1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r22493: Fix horrible memory corruption bug with CIFS POSIX open/mkidr.

Found by SteveF + valgrind :-). Jerry - essential for rc3.
Jeremy.
This commit is contained in:
Jeremy Allison 2007-04-23 21:40:54 +00:00 committed by Gerald (Jerry) Carter
parent d3df922038
commit b01c1c4618

View File

@ -5434,6 +5434,7 @@ static NTSTATUS smb_posix_mkdir(connection_struct *conn,
*pdata_return_size = 0;
return NT_STATUS_NO_MEMORY;
}
pdata = *ppdata;
SSVAL(pdata,0,NO_OPLOCK_RETURN);
SSVAL(pdata,2,0); /* No fnum. */
@ -5610,6 +5611,7 @@ static NTSTATUS smb_posix_open(connection_struct *conn,
*pdata_return_size = 0;
return NT_STATUS_NO_MEMORY;
}
pdata = *ppdata;
if (extended_oplock_granted) {
if (flags & REQUEST_BATCH_OPLOCK) {