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:
d424d21
)
ctdb-event: Assign missing return value
author
Martin Schwenke
<martin@meltin.net>
Mon, 24 Jun 2019 06:42:58 +0000
(16:42 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Fri, 5 Jul 2019 05:03:24 +0000
(
05:03
+0000)
Otherwise ret == 0 is returned from successful call to
ctdb_int32_pull().
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/event/event_protocol.c
patch
|
blob
|
history
diff --git
a/ctdb/event/event_protocol.c
b/ctdb/event/event_protocol.c
index 21adb430c20dd6707b239d42f5352ec1891698b6..baa9e1ecb825ea8b7ec4168a8ad8164b5bbf29d6 100644
(file)
--- a/
ctdb/event/event_protocol.c
+++ b/
ctdb/event/event_protocol.c
@@
-317,6
+317,7
@@
static int ctdb_event_script_list_pull(uint8_t *buf,
value->script = talloc_array(value, struct ctdb_event_script,
num_scripts);
if (value->script == NULL) {
+ ret = ENOMEM;
goto fail;
}