From 78387e9567b4c833aa228eb9d2398da7511974aa Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Fri, 12 Oct 2012 16:25:11 +0000 Subject: [PATCH] Bugfix: "expires" is optional --- blkmaker_jansson.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blkmaker_jansson.c b/blkmaker_jansson.c index 5963489..ac6ba29 100644 --- a/blkmaker_jansson.c +++ b/blkmaker_jansson.c @@ -214,7 +214,8 @@ const char *blktmpl_add_jansson(blktemplate_t *tmpl, const json_t *json, time_t GETSTR(workid, workid); - GETNUM(expires); + if (json_object_get(json, "expires")) + GETNUM(expires); GETSTR(longpollid, lp.id); GETSTR(longpolluri, lp.uri);