From 94cf7b2c1736a3a5acdb3cd88ee55fb11b6c9042 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 28 Jan 2016 21:33:33 +1100 Subject: [PATCH] Properly handle clients that don't accept bkeys --- src/connector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 5faa0621..d1b8168f 100644 --- a/src/connector.c +++ b/src/connector.c @@ -1002,9 +1002,10 @@ static void send_client(cdata_t *cdata, const int64_t id, char *buf, int slen, i len = strlen(buf); goto out; } - free(buf); json_append_bkeys(val, bkey, blen); + free(buf); buf = json_dumps(val, JSON_COMPACT | JSON_EOL); + len = strlen(buf); json_decref(val); } out: