summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-27 09:29:36 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-04-02 09:03:43 +0200
commit1ac4fba4bf03ba4e3db3bc1064716a31ace3ddec (patch)
treed09fe0e48a0d89a4fd9933348c60de82b26b81c5 /source4/ntvfs
parentfbc991c2e140eb009e37581faa738f1487161d5c (diff)
downloadsamba-1ac4fba4bf03ba4e3db3bc1064716a31ace3ddec.tar.gz
s4:ntvfs/common: explicitly check the status of imessaging_send() in notify_send()
This avoid an unused warning... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/common/notify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c
index 445f38f742b..57142c7f38c 100644
--- a/source4/ntvfs/common/notify.c
+++ b/source4/ntvfs/common/notify.c
@@ -563,6 +563,11 @@ static void notify_send(struct notify_context *notify, struct notify_entry *e,
status = imessaging_send(notify->imessaging_ctx, e->server,
MSG_PVFS_NOTIFY, &data);
+ if (!NT_STATUS_IS_OK(status)) {
+ talloc_free(tmp_ctx);
+ return;
+ }
+
talloc_free(tmp_ctx);
}