svn commit: samba r11594 - in branches/SAMBA_4_0/source/lib/ldb/common: .

tridge at samba.org tridge at samba.org
Wed Nov 9 08:07:39 GMT 2005


Author: tridge
Date: 2005-11-09 08:07:38 +0000 (Wed, 09 Nov 2005)
New Revision: 11594

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

Log:

ensure ldb_search() sets *res to NULL on failure (some of the updated
ldb_result code coud rely on that)



Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb.c	2005-11-09 08:06:56 UTC (rev 11593)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb.c	2005-11-09 08:07:38 UTC (rev 11594)
@@ -235,6 +235,8 @@
 	struct ldb_parse_tree *tree;
 	int ret;
 
+	(*res) = NULL;
+
 	request = talloc(ldb, struct ldb_request);
 	if (request == NULL) {
 		ldb_set_errstring(ldb->modules, talloc_strdup(ldb, "Not Enough memory"));



More information about the samba-cvs mailing list