svn commit: samba r12782 - in
branches/SAMBA_4_0/source/torture/local: .
abartlet at samba.org
abartlet at samba.org
Sun Jan 8 22:01:02 GMT 2006
Author: abartlet
Date: 2006-01-08 22:00:57 +0000 (Sun, 08 Jan 2006)
New Revision: 12782
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12782
Log:
Don't segfault if we cannot setup messaging.
Andrew Bartlett
Modified:
branches/SAMBA_4_0/source/torture/local/irpc.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/irpc.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/irpc.c 2006-01-08 22:00:01 UTC (rev 12781)
+++ branches/SAMBA_4_0/source/torture/local/irpc.c 2006-01-08 22:00:57 UTC (rev 12782)
@@ -225,7 +225,17 @@
ev = event_context_init(mem_ctx);
msg_ctx1 = messaging_init(mem_ctx, MSG_ID1, ev);
+ if (!msg_ctx1) {
+ printf("Failed to init first messaging context\n");
+ talloc_free(mem_ctx);
+ return False;
+ }
msg_ctx2 = messaging_init(mem_ctx, MSG_ID2, ev);
+ if (!msg_ctx2) {
+ printf("Failed to init second messaging context\n");
+ talloc_free(mem_ctx);
+ return False;
+ }
/* register the server side function */
IRPC_REGISTER(msg_ctx1, rpcecho, ECHO_ADDONE, irpc_AddOne, NULL);
More information about the samba-cvs
mailing list