git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3df922
)
r22493: Fix horrible memory corruption bug with CIFS POSIX open/mkidr.
author
Jeremy Allison
<jra@samba.org>
Mon, 23 Apr 2007 21:40:54 +0000
(21:40 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:39 +0000
(12:19 -0500)
Found by SteveF + valgrind :-). Jerry - essential for rc3.
Jeremy.
source/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source/smbd/trans2.c
b/source/smbd/trans2.c
index 2c6df0a11e1f79df8f7a340704824e6082ffd649..512b3162fadf4fd975d7d98fee5a9f2dfda365b9 100644
(file)
--- a/
source/smbd/trans2.c
+++ b/
source/smbd/trans2.c
@@
-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) {