svn commit: lorikeet r497 - in trunk/heimdal/lib/hdb: .
abartlet at samba.org
abartlet at samba.org
Mon Nov 28 23:17:18 GMT 2005
Author: abartlet
Date: 2005-11-28 23:17:18 +0000 (Mon, 28 Nov 2005)
New Revision: 497
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=497
Log:
These memsets should ensure that we don't call hdb function pointers (such as the new fetch_entry_ex) that don't exist.
Andrew Bartlett
Modified:
trunk/heimdal/lib/hdb/db.c
trunk/heimdal/lib/hdb/ndbm.c
Changeset:
Modified: trunk/heimdal/lib/hdb/db.c
===================================================================
--- trunk/heimdal/lib/hdb/db.c 2005-11-28 23:08:22 UTC (rev 496)
+++ trunk/heimdal/lib/hdb/db.c 2005-11-28 23:17:18 UTC (rev 497)
@@ -276,6 +276,8 @@
return ENOMEM;
}
+ memset(*db, '\0', sizeof(**db));
+
(*db)->hdb_db = NULL;
(*db)->hdb_name = strdup(filename);
if ((*db)->hdb_name == NULL) {
Modified: trunk/heimdal/lib/hdb/ndbm.c
===================================================================
--- trunk/heimdal/lib/hdb/ndbm.c 2005-11-28 23:08:22 UTC (rev 496)
+++ trunk/heimdal/lib/hdb/ndbm.c 2005-11-28 23:17:18 UTC (rev 497)
@@ -339,6 +339,8 @@
return ENOMEM;
}
+ memset(*db, '\0', sizeof(**db));
+
(*db)->hdb_db = NULL;
(*db)->hdb_name = strdup(filename);
if ((*db)->hdb_name == NULL) {
More information about the samba-cvs
mailing list