From af0acbeb6a91d97229c06e9889dff5f583a1a75b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 22 Jul 2014 15:53:42 +1000 Subject: [PATCH] Set useragent to blank string when no array fields are filled in for stratum --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 295834cd..cb3af6d5 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1143,7 +1143,8 @@ static json_t *parse_subscribe(int client_id, json_t *params_val) old_match = true; } } - } + } else + client->useragent = ckzalloc(1); if (!old_match) { /* Create a new extranonce1 based on a uint64_t pointer */ new_enonce1(client);