Browse Source

Can get invalid json from upstream server when responding to invalid json from client

master
Con Kolivas 9 years ago
parent
commit
38b09e0f95
  1. 3
      src/connector.c

3
src/connector.c

@ -832,7 +832,8 @@ static void test_redirector_shares(ckpool_t *ckp, client_instance_t *client, con
int64_t id; int64_t id;
if (!val) { if (!val) {
LOGNOTICE("Invalid json response to client %"PRId64, client->id); /* Can happen when responding to invalid json from client */
LOGINFO("Invalid json response to client %"PRId64 "%s", client->id, buf);
return; return;
} }
if (!json_get_int64(&id, val, "id")) { if (!json_get_int64(&id, val, "id")) {

Loading…
Cancel
Save