svn commit: samba r9125 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Fri Aug 5 17:10:08 GMT 2005
Author: jra
Date: 2005-08-05 17:10:07 +0000 (Fri, 05 Aug 2005)
New Revision: 9125
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9125
Log:
Buffer flipping part (only part that applies with the new oplock
code) of this fix : valgrind bug Volker found in interaction with new aio buffer
flipping and oplocks.
Jeremy.
Modified:
trunk/source/smbd/process.c
Changeset:
Modified: trunk/source/smbd/process.c
===================================================================
--- trunk/source/smbd/process.c 2005-08-05 15:54:11 UTC (rev 9124)
+++ trunk/source/smbd/process.c 2005-08-05 17:10:07 UTC (rev 9125)
@@ -1623,6 +1623,7 @@
void set_InBuffer(char *new_inbuf)
{
InBuffer = new_inbuf;
+ current_inbuf = InBuffer;
}
char *get_OutBuffer(void)
@@ -1643,6 +1644,9 @@
void free_InBuffer(char *inbuf)
{
if (!aio_inbuffer_in_use(inbuf)) {
+ if (current_inbuf == inbuf) {
+ current_inbuf = NULL;
+ }
SAFE_FREE(inbuf);
}
}
More information about the samba-cvs
mailing list