ctdb-tools: CID 1449530 - Negative loop bound
authorMartin Schwenke <martin@meltin.net>
Wed, 3 Jul 2019 10:58:54 +0000 (20:58 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 06:49:16 +0000 (06:49 +0000)
commit753874b38fddc05357635e13c8ce26d319b0d77f
tree67b7e6fab380b6fc84ce7aff8d439c8968d0b838
parentc5803507df7def388edcd5b6cbfee30cd217b536
ctdb-tools: CID 1449530 - Negative loop bound

Regression introduced by commit
2558f96da1f9be8034f26736c8050bb38a1f82a8.  count should be signed
because list_of_connected_nodes() returns -1 on failure.  Variable i
is used in both signed and unsigned contexts, so add new signed
variable j for use in signed context.

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