svn commit: samba r17044 - in branches/SAMBA_3_0_23/source/locking: .

jra at samba.org jra at samba.org
Sat Jul 15 00:14:04 GMT 2006


Author: jra
Date: 2006-07-15 00:14:03 +0000 (Sat, 15 Jul 2006)
New Revision: 17044

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17044

Log:
One more for 3.0.23a - fix a reference after free...
(pointer swizzelling can be painful...).
Jeremy.

Modified:
   branches/SAMBA_3_0_23/source/locking/brlock.c


Changeset:
Modified: branches/SAMBA_3_0_23/source/locking/brlock.c
===================================================================
--- branches/SAMBA_3_0_23/source/locking/brlock.c	2006-07-15 00:05:47 UTC (rev 17043)
+++ branches/SAMBA_3_0_23/source/locking/brlock.c	2006-07-15 00:14:03 UTC (rev 17044)
@@ -959,6 +959,7 @@
 	br_lck->num_locks = count;
 	SAFE_FREE(br_lck->lock_data);
 	br_lck->lock_data = (void *)tp;
+	locks = (struct lock_struct *)br_lck->lock_data;
 	br_lck->modified = True;
 
 	/* Send unlock messages to any pending waiters that overlap. */



More information about the samba-cvs mailing list