Browse Source

Properly handle clients that don't accept bkeys

master
Con Kolivas 9 years ago
parent
commit
94cf7b2c17
  1. 3
      src/connector.c

3
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); len = strlen(buf);
goto out; goto out;
} }
free(buf);
json_append_bkeys(val, bkey, blen); json_append_bkeys(val, bkey, blen);
free(buf);
buf = json_dumps(val, JSON_COMPACT | JSON_EOL); buf = json_dumps(val, JSON_COMPACT | JSON_EOL);
len = strlen(buf);
json_decref(val); json_decref(val);
} }
out: out:

Loading…
Cancel
Save