From 0395403f9b9da62e45bb90702d18b1d7ea68dcf2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 12 Dec 2015 23:53:23 +1100 Subject: [PATCH] Allow null message to be passed to parse_method --- src/generator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generator.c b/src/generator.c index 36a1e7f1..6b058719 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1164,6 +1164,8 @@ static bool parse_method(ckpool_t *ckp, proxy_instance_t *proxi, const char *msg bool ret = false; const char *buf; + if (!msg) + goto out; memset(&err, 0, sizeof(err)); val = json_loads(msg, 0, &err); if (!val) {