From 7399d4567254f31520076e4543bf4426e4498e94 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Jan 2016 21:44:37 -0300 Subject: [PATCH] test --- iguana/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/main.c b/iguana/main.c index f8c58cf67..17eb3b2f5 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -275,8 +275,8 @@ void iguana_main(void *arg) OS_ensure_directory("tmp"); if ( (tmpstr= SuperNET_JSON(&MYINFO,cJSON_Parse("{\"agent\":\"SuperNET\",\"method\":\"help\"}"),0)) != 0 ) { - if ( (API_json= cJSON_Parse(tmpstr)) != 0 ) - API_json = jobj(API_json,"result"); + if ( (API_json= cJSON_Parse(tmpstr)) != 0 && (API_json= jobj(API_json,"result")) != 0 ) + API_json = jobj(API_json,"API"); free(tmpstr); } memset(&MYINFO,0,sizeof(MYINFO));