svn commit: samba r16475 - branches/SAMBA_3_0/source/nsswitch
trunk/source/nsswitch
gd at samba.org
gd at samba.org
Thu Jun 22 20:33:42 GMT 2006
Author: gd
Date: 2006-06-22 20:33:42 +0000 (Thu, 22 Jun 2006)
New Revision: 16475
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16475
Log:
destroy talloc ctx when we weren't able to collect onlinestatus
messages.
Guenther
Modified:
branches/SAMBA_3_0/source/nsswitch/winbindd_dual.c
trunk/source/nsswitch/winbindd_dual.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_dual.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_dual.c 2006-06-22 20:31:02 UTC (rev 16474)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_dual.c 2006-06-22 20:33:42 UTC (rev 16475)
@@ -649,6 +649,10 @@
}
message = collect_onlinestatus(mem_ctx);
+ if (message == NULL) {
+ talloc_destroy(mem_ctx);
+ return;
+ }
message_send_pid(*sender, MSG_WINBIND_ONLINESTATUS,
message, strlen(message) + 1, True);
Modified: trunk/source/nsswitch/winbindd_dual.c
===================================================================
--- trunk/source/nsswitch/winbindd_dual.c 2006-06-22 20:31:02 UTC (rev 16474)
+++ trunk/source/nsswitch/winbindd_dual.c 2006-06-22 20:33:42 UTC (rev 16475)
@@ -650,6 +650,10 @@
}
message = collect_onlinestatus(mem_ctx);
+ if (message == NULL) {
+ talloc_destroy(mem_ctx);
+ return;
+ }
message_send_pid(*sender, MSG_WINBIND_ONLINESTATUS,
message, strlen(message) + 1, True);
More information about the samba-cvs
mailing list