From ebb027b738d0addd3ee5c205c5370b01859aee71 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 31 Oct 2012 13:10:12 +0100 Subject: 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 Reviewed-by: Stefan Metzmacher --- source3/smbd/notify_internal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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; -- cgit