mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
nmbd: untangle logic in nmbd_messaging_context() slightly.
Michael
(This used to be commit 3baf9eb6a2
)
This commit is contained in:
parent
c1562aae9b
commit
7ec1678d60
@ -52,8 +52,11 @@ struct messaging_context *nmbd_messaging_context(void)
|
||||
{
|
||||
static struct messaging_context *ctx;
|
||||
|
||||
if (!ctx && !(ctx = messaging_init(NULL, server_id_self(),
|
||||
nmbd_event_context()))) {
|
||||
if (ctx == NULL) {
|
||||
ctx = messaging_init(NULL, server_id_self(),
|
||||
nmbd_event_context());
|
||||
}
|
||||
if (ctx == NULL) {
|
||||
DEBUG(0, ("Could not init nmbd messaging context.\n"));
|
||||
}
|
||||
return ctx;
|
||||
|
Loading…
Reference in New Issue
Block a user