]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: untangle logic in winbind_messaging_context() slightly.
authorMichael Adam <obnox@samba.org>
Tue, 24 Jun 2008 10:30:38 +0000 (12:30 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 26 Jun 2008 10:31:10 +0000 (12:31 +0200)
Michael

source/winbindd/winbindd.c

index a6c3dd8651988403bfc6078578c7d0c3ee350b5d..00951a609e65a743c91b47951c9ea1866e00427f 100644 (file)
@@ -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;