svn commit: samba r7780 - in branches/SAMBA_4_0/source/lib/talloc: .

tridge at samba.org tridge at samba.org
Mon Jun 20 05:21:11 GMT 2005


Author: tridge
Date: 2005-06-20 05:21:11 +0000 (Mon, 20 Jun 2005)
New Revision: 7780

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

Log:
fixed a bug in talloc_find_parent_byname()

Modified:
   branches/SAMBA_4_0/source/lib/talloc/talloc.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.c
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/talloc.c	2005-06-20 05:04:45 UTC (rev 7779)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.c	2005-06-20 05:21:11 UTC (rev 7780)
@@ -1127,7 +1127,7 @@
 	while (tc->parent && (!tc->name || strcmp(tc->name, name))) {
 		tc = tc->parent;
 	}
-	if (tc == NULL) {
+	if (tc == NULL || tc->name == NULL || strcmp(tc->name, name)) {
 		return NULL;
 	}
 	return (void *)(tc+1);



More information about the samba-cvs mailing list