1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

ctdb-protocol: Fix CID 1417428

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Tue Sep  5 15:16:06 CEST 2017 on sn-devel-144
This commit is contained in:
Amitay Isaacs 2017-09-05 16:36:16 +10:00 committed by Martin Schwenke
parent 40c5361d41
commit 587bdfe6cc

View File

@ -3892,8 +3892,8 @@ int ctdb_script_list_pull(uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx,
offset += np;
if (val->num_scripts == 0) {
goto done;
val->script = NULL;
goto done;
}
val->script = talloc_array(val, struct ctdb_script, val->num_scripts);