From 1e0c1b4e3406260e9986e6dc0c42d81a6eef39d9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 2 Aug 2014 00:26:36 +1000 Subject: [PATCH] Don't use safecmp for blockupdate since a null buf can be passed on --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 5c5b0432..f3bd2b75 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1088,7 +1088,7 @@ static void *blockupdate(void *arg) while (42) { dealloc(buf); buf = send_recv_proc(ckp->generator, request); - if (safecmp(buf, hash) && !cmdmatch(buf, "failed")) { + if (buf && strcmp(buf, hash) && !cmdmatch(buf, "failed")) { strcpy(hash, buf); LOGNOTICE("Block hash changed to %s", hash); send_proc(ckp->stratifier, "update");