diff --git a/src/stratifier.c b/src/stratifier.c index 8756a851..bfac1dcc 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2897,7 +2897,7 @@ static void parse_method(sdata_t *sdata, const int64_t client_id, json_t *id_val /* Shouldn't happen, sanity check */ if (unlikely(!result_val)) { LOGWARNING("parse_subscribe returned NULL result_val"); - return; + goto out; } val = json_object(); json_object_set_new_nocheck(val, "result", result_val); @@ -2952,7 +2952,7 @@ static void parse_method(sdata_t *sdata, const int64_t client_id, json_t *id_val if (cmdmatch(method, "mining.suggest")) { suggest_diff(client, method, params_val); - return; + goto out; } /* Covers both get_transactions and get_txnhashes */