From 29ebae7410d3683191593e634ca13d8127fc08fb Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Feb 2015 11:22:51 +1100 Subject: [PATCH] Fix incorrect cs being used in proxy_send --- src/generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index deef63b0..c4e56113 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1504,9 +1504,9 @@ static void *proxy_send(void *arg) mutex_unlock(&proxy->notify_lock); subproxy = subproxy_by_id(proxy, subid); - - if (jobid && subproxy) { + if (subproxy) cs = subproxy->cs; + if (jobid && subproxy) { JSON_CPACK(val, "{s[ssooo]soss}", "params", proxy->auth, jobid, json_object_dup(msg->json_msg, "nonce2"), json_object_dup(msg->json_msg, "ntime"),