From b33d226a61fe8f2ab6e173e5f0182c208bc58b9e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 24 Jun 2008 12:30:38 +0200 Subject: winbind: untangle logic in winbind_messaging_context() slightly. Michael (This used to be commit e710a9b73ea2fd176de7093125bc5f3f3f3a9404) --- source3/winbindd/winbindd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index a6c3dd8651..00951a609e 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -47,8 +47,11 @@ struct messaging_context *winbind_messaging_context(void) { static struct messaging_context *ctx; - if (!ctx && !(ctx = messaging_init(NULL, server_id_self(), - winbind_event_context()))) { + if (ctx == NULL) { + ctx = messaging_init(NULL, server_id_self(), + winbind_event_context()); + } + if (ctx == NULL) { DEBUG(0, ("Could not init winbind messaging context.\n")); } return ctx; -- cgit