mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
winbind: untangle logic in winbind_messaging_context() slightly.
Michael
(This used to be commit e710a9b73e
)
This commit is contained in:
parent
7f8df9c217
commit
b33d226a61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user