From dbef4a18271bf1aa716775a600811b53856a4df3 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 15 Jan 2018 09:41:41 +1030 Subject: [PATCH] pay: remove gratuitous check for msatoshitok being 'null'. json_get_params does this for us. Fixes: 78adf0b (pay: allow 'null' msatoshi field.) Reported-by: ZmnSCPxj Signed-off-by: Rusty Russell --- lightningd/pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/pay.c b/lightningd/pay.c index f5fb902a5..2a194b6d6 100644 --- a/lightningd/pay.c +++ b/lightningd/pay.c @@ -444,7 +444,7 @@ static void json_pay(struct command *cmd, if (b11->msatoshi) { msatoshi = *b11->msatoshi; - if (msatoshitok && !json_tok_is_null(buffer, msatoshitok)) { + if (msatoshitok) { command_fail(cmd, "msatoshi parameter unnecessary"); return; }