summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-06-24 16:42:58 +1000
committerAmitay Isaacs <amitay@samba.org>2019-07-05 05:03:24 +0000
commite7b586f711f739cf50e9a623c683b23856266eed (patch)
tree541d204d3f6e209936d9c442f8a90abd84a8dedc /ctdb
parentd424d2197f1f873fded84ed650295d0b8c64960a (diff)
downloadsamba-e7b586f711f739cf50e9a623c683b23856266eed.tar.gz
ctdb-event: Assign missing return value
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>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/event/event_protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/event/event_protocol.c b/ctdb/event/event_protocol.c
index 21adb430c20..baa9e1ecb82 100644
--- 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;
}