svn commit: samba r16642 - in branches/SAMBA_3_0/source/nmbd: .
jra at samba.org
jra at samba.org
Wed Jun 28 20:39:09 GMT 2006
Author: jra
Date: 2006-06-28 20:39:07 +0000 (Wed, 28 Jun 2006)
New Revision: 16642
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16642
Log:
Fix show-stopper bug #3876. Double-free in wins
server code. Jerry please merge for 3.0.23.
Jeremy.
Modified:
branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
Changeset:
Modified: branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
===================================================================
--- branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c 2006-06-28 20:38:59 UTC (rev 16641)
+++ branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c 2006-06-28 20:39:07 UTC (rev 16642)
@@ -76,6 +76,7 @@
if (!namerec) {
return NULL;
}
+ ZERO_STRUCTP(namerec);
namerec->data.ip = SMB_MALLOC_ARRAY(struct in_addr, num_ips);
if (!namerec->data.ip) {
@@ -294,7 +295,6 @@
ret = tdb_delete(wins_tdb, key);
DLIST_REMOVE(wins_server_subnet->namelist, namerec);
- SAFE_FREE(namerec->data.ip);
/* namerec must be freed by the caller */
More information about the samba-cvs
mailing list