ctdb-event: Assign missing return value
authorMartin Schwenke <martin@meltin.net>
Mon, 24 Jun 2019 06:42:58 +0000 (16:42 +1000)
committerAmitay 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

index 21adb430c20dd6707b239d42f5352ec1891698b6..baa9e1ecb825ea8b7ec4168a8ad8164b5bbf29d6 100644 (file)
@@ -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;
        }