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:
parent
d424d2197f
commit
e7b586f711
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user