From: Martin Schwenke Date: Mon, 24 Jun 2019 06:42:58 +0000 (+1000) Subject: ctdb-event: Assign missing return value X-Git-Tag: samba-4.11.0rc1~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7b586f711f739cf50e9a623c683b23856266eed;p=thirdparty%2Fsamba.git 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 --- 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; }