From 5c289b9cb52bcb5809a92d100c3906acb24d5755 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 28 Jan 2016 14:42:40 +1100 Subject: [PATCH] Don't fail on last seek in json_append_bkeys --- src/libckpool.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libckpool.c b/src/libckpool.c index 857d80c0..48e36011 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -1445,11 +1445,6 @@ bool _json_append_bkeys(json_t *val, const char *bkey, const uint32_t len, const json_set_string(val, key, hex); free(hex); ofs += binlen; - if (unlikely(ofs >= len)) { - LOGDEBUG("Unable to seek to bkey offset %u beyond length %d", - ofs, len); - return false; - } } return true; }