diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index d213f2838..ef28da1d9 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -312,6 +312,8 @@ char *SuperNET_JSON(struct supernet_info *myinfo,cJSON *json,char *remoteaddr) free(forwardstr); if ( jsonstr != 0 ) free(jsonstr); + if ( retstr == 0 ) + retstr = clonestr("{\"error\":\"invalid JSON request\"}"); return(retstr); }