From 1ac4fba4bf03ba4e3db3bc1064716a31ace3ddec Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 27 Feb 2014 09:29:36 +0100 Subject: [PATCH] s4:ntvfs/common: explicitly check the status of imessaging_send() in notify_send() This avoid an unused warning... Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/ntvfs/common/notify.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.11.4.GIT