From e7b586f711f739cf50e9a623c683b23856266eed Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 24 Jun 2019 16:42:58 +1000 Subject: [PATCH] ctdb-event: Assign missing return value Otherwise ret == 0 is returned from successful call to ctdb_int32_pull(). Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/event/event_protocol.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.3