summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/notify_internal.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index ee6f4cc870..2dc86748d9 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -662,7 +662,12 @@ void notify_trigger(struct notify_context *notify,
qsort(idx_state.vnns, num_vnns, sizeof(uint32_t), vnn_cmp);
last_vnn = 0xffffffff;
- remote_blob = NULL;
+
+ if (!notify_push_remote_blob(talloc_tos(), action, filter, path,
+ &remote_blob, &remote_blob_len)) {
+ DEBUG(1, ("notify_push_remote_blob failed\n"));
+ goto done;
+ }
for (i=0; i<num_vnns; i++) {
uint32_t vnn = idx_state.vnns[i];
@@ -671,12 +676,6 @@ void notify_trigger(struct notify_context *notify,
if (vnn == last_vnn) {
continue;
}
- if ((remote_blob == NULL) &&
- !notify_push_remote_blob(
- talloc_tos(), action, filter,
- path, &remote_blob, &remote_blob_len)) {
- break;
- }
status = ctdbd_messaging_send_blob(
ctdbd_conn, vnn, CTDB_SRVID_SAMBA_NOTIFY_PROXY,