1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Martin Schwenke 2019-06-24 16:42:58 +10:00 committed by Amitay Isaacs
parent d424d2197f
commit e7b586f711

View File

@ -317,6 +317,7 @@ static int ctdb_event_script_list_pull(uint8_t *buf,
value->script = talloc_array(value, struct ctdb_event_script, value->script = talloc_array(value, struct ctdb_event_script,
num_scripts); num_scripts);
if (value->script == NULL) { if (value->script == NULL) {
ret = ENOMEM;
goto fail; goto fail;
} }