git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc991c
)
s4:ntvfs/common: explicitly check the status of imessaging_send() in notify_send()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 27 Feb 2014 08:29:36 +0000
(09:29 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 2 Apr 2014 07:03:43 +0000
(09:03 +0200)
This avoid an unused warning...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/ntvfs/common/notify.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/common/notify.c
b/source4/ntvfs/common/notify.c
index 445f38f742b7125ca084fe504fb47778719e495b..57142c7f38c8fe0782eef00a02221a08fa60abe4 100644
(file)
--- 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);
}