ctdb-client: Fix incorrect variable reference
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Jul 2016 04:46:58 +0000 (14:46 +1000)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Jul 2016 19:27:17 +0000 (21:27 +0200)
commit5f57bcc01d973516beaedfbd2c1ef552322e4779
treedda2985eb35fd7df40a9969ba10018ded15536a3
parent7fdb5d2c5c05aec440b3ceea6a5fabcc3284f0a2
ctdb-client: Fix incorrect variable reference

The point of this code is almost certainly to return non-zero when
state->errormsg is set.  So, return state->status if non-zero, -1
otherwise.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
ctdb/client/ctdb_client.c