summaryrefslogtreecommitdiffstats
path: root/source4/torture/local
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-08 22:00:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:54 -0500
commite0dc53cf091e45873f6a5b32de5d8572eaa8f215 (patch)
treec6ea155469964b6a636ae37601d70d1a7dfc3dbb /source4/torture/local
parentfa9aa1472b8e6728c9de583598dc4286dd1ca7d5 (diff)
downloadsamba-e0dc53cf091e45873f6a5b32de5d8572eaa8f215.tar.gz
samba-e0dc53cf091e45873f6a5b32de5d8572eaa8f215.tar.xz
samba-e0dc53cf091e45873f6a5b32de5d8572eaa8f215.zip
r12782: Don't segfault if we cannot setup messaging.
Andrew Bartlett (This used to be commit 59c380e048423d706ab65513c09dbefecb5819ae)
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/irpc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/local/irpc.c b/source4/torture/local/irpc.c
index 71744ad2e8..75659b6b84 100644
--- a/source4/torture/local/irpc.c
+++ b/source4/torture/local/irpc.c
@@ -225,7 +225,17 @@ BOOL torture_local_irpc(void)
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);