From 587bdfe6cc32cfd8e18268d0b5caa3ed2c011f27 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 5 Sep 2017 16:36:16 +1000 Subject: ctdb-protocol: Fix CID 1417428 Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Tue Sep 5 15:16:06 CEST 2017 on sn-devel-144 --- ctdb/protocol/protocol_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctdb/protocol') diff --git a/ctdb/protocol/protocol_types.c b/ctdb/protocol/protocol_types.c index 3fc00c96335..ae6f7ed527a 100644 --- a/ctdb/protocol/protocol_types.c +++ b/ctdb/protocol/protocol_types.c @@ -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); -- cgit v1.2.1