Browse Source

Fix incorrect cs being used in proxy_send

master
Con Kolivas 10 years ago
parent
commit
29ebae7410
  1. 4
      src/generator.c

4
src/generator.c

@ -1504,9 +1504,9 @@ static void *proxy_send(void *arg)
mutex_unlock(&proxy->notify_lock); mutex_unlock(&proxy->notify_lock);
subproxy = subproxy_by_id(proxy, subid); subproxy = subproxy_by_id(proxy, subid);
if (subproxy)
if (jobid && subproxy) {
cs = subproxy->cs; cs = subproxy->cs;
if (jobid && subproxy) {
JSON_CPACK(val, "{s[ssooo]soss}", "params", proxy->auth, jobid, JSON_CPACK(val, "{s[ssooo]soss}", "params", proxy->auth, jobid,
json_object_dup(msg->json_msg, "nonce2"), json_object_dup(msg->json_msg, "nonce2"),
json_object_dup(msg->json_msg, "ntime"), json_object_dup(msg->json_msg, "ntime"),

Loading…
Cancel
Save