diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-09-05 16:36:16 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-09-05 15:16:06 +0200 |
commit | 587bdfe6cc32cfd8e18268d0b5caa3ed2c011f27 (patch) | |
tree | df3e3ffe0d40cf1497a97beae5414b8433101d0f /ctdb | |
parent | 40c5361d41b9f5d17f3ae2f340893c4942c06472 (diff) | |
download | samba-587bdfe6cc32cfd8e18268d0b5caa3ed2c011f27.tar.gz |
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
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/protocol/protocol_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |