From a00f90f8ba91d21b5e5055e641090de46f5cce33 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 19 Oct 2016 15:00:40 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 7ba1516c2..a77c2ffb2 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -273,6 +273,8 @@ STRING_ARG(iguana,addnotary,ipaddr) STRING_ARG(dpow,active,maskhex) { uint8_t data[8]; int32_t i,len; cJSON *array = cJSON_CreateArray(); + if ( maskhex == 0 || maskhex[0] == 0 ) + return(clonestr("{\"error\":\"no maskhex\"}")); printf("dpow active (%s)\n",maskhex); if ( (len= (int32_t)strlen(maskhex)) <= 16 ) {