diff options
author | Volker Lendecke <vl@samba.org> | 2012-10-31 13:10:12 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-03-26 11:27:30 +0100 |
commit | ebb027b738d0addd3ee5c205c5370b01859aee71 (patch) | |
tree | aab72f1671b1204f5777e8b3e90a8044d95ebed0 | |
parent | eb885d1fdd6a2be603061aeef63790c92ca9ba56 (diff) | |
download | samba-ebb027b738d0addd3ee5c205c5370b01859aee71.tar.gz samba-ebb027b738d0addd3ee5c205c5370b01859aee71.tar.bz2 samba-ebb027b738d0addd3ee5c205c5370b01859aee71.zip |
smbd: Slightly simplify notify_trigger
We have a good chance that we did not collect any remote vnns. This
avoids trying to walk the remote vnns altogether.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/smbd/notify_internal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index ddf8160cb0..f3d874daf9 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -649,6 +649,10 @@ void notify_trigger(struct notify_context *notify, } } + if (idx_state.vnns == NULL) { + goto done; + } + ctdbd_conn = messaging_ctdbd_connection(); if (ctdbd_conn == NULL) { goto done; |