summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-05-30 15:32:03 +1000
committerAmitay Isaacs <amitay@samba.org>2019-06-05 10:25:50 +0000
commit0bd87d75c0db076e17d2d186afbdccb3e769b125 (patch)
treec1f58d339be5ae0bab250c04256c3dca488b47a9 /ctdb
parent90622ab901a2738c827d79c002123f758fb966b7 (diff)
downloadsamba-0bd87d75c0db076e17d2d186afbdccb3e769b125.tar.gz
ctdb-utils: Avoid warning about unused value
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/utils/ping_pong/ping_pong.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/utils/ping_pong/ping_pong.c b/ctdb/utils/ping_pong/ping_pong.c
index 3597daac201..1f2bad5516b 100644
--- a/ctdb/utils/ping_pong/ping_pong.c
+++ b/ctdb/utils/ping_pong/ping_pong.c
@@ -160,6 +160,10 @@ static void ping_pong(int fd, int num_locks)
}
if (do_check) {
ret = check_lock(fd, i, 1);
+ if (ret != 0) {
+ free(val);
+ return;
+ }
}
if (do_reads) {
unsigned char c;