From 816158de00062a6e09d98651a9a0794482efb650 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Jan 2016 19:51:38 -0300 Subject: [PATCH] test --- iguana/SuperNET.c | 3 ++- iguana/main.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index e6c09b0e0..d213f2838 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -273,7 +273,7 @@ int32_t SuperNET_destination(struct supernet_info *myinfo,uint32_t *destipbitsp, char *SuperNET_JSON(struct supernet_info *myinfo,cJSON *json,char *remoteaddr) { int32_t destflag,maxdelay; bits256 destpub; uint32_t destipbits; cJSON *retjson; - char *forwardstr=0,*retstr=0,*agent,*method,*message,*jsonstr=0; + char *forwardstr=0,*retstr=0,*agent=0,*method=0,*message,*jsonstr=0; if ( remoteaddr != 0 && strcmp(remoteaddr,"127.0.0.1") == 0 ) remoteaddr = 0; printf("SuperNET_JSON.(%s) remote.(%s)\n",jprint(json,0),remoteaddr!=0?remoteaddr:""); @@ -305,6 +305,7 @@ char *SuperNET_JSON(struct supernet_info *myinfo,cJSON *json,char *remoteaddr) } } else printf("null retstr from SuperNET_JSON\n"); } + printf("retstr.%p forwardstr.%p jsonstr.%p\n",retstr,forwardstr,jsonstr); if ( retstr == 0 ) retstr = forwardstr, forwardstr = 0; if ( forwardstr != 0 ) diff --git a/iguana/main.c b/iguana/main.c index a3f6069dc..c1e34aa47 100644 --- a/iguana/main.c +++ b/iguana/main.c @@ -137,7 +137,7 @@ char *iguana_blockingjsonstr(struct supernet_info *myinfo,char *jsonstr,uint64_t char *SuperNET_processJSON(struct supernet_info *myinfo,cJSON *json,char *remoteaddr) { cJSON *retjson; uint64_t tag; uint32_t timeout; char *jsonstr; char *retjsonstr,*retstr = 0; - //printf("SuperNET_JSON.(%s) remoteaddr.(%s)\n",jprint(json,0),remoteaddr!=0?remoteaddr:""); + printf("SuperNET_JSON.(%s) remoteaddr.(%s)\n",jprint(json,0),remoteaddr!=0?remoteaddr:""); if ( json != 0 ) { if ( (tag= j64bits(json,"tag")) == 0 ) @@ -158,7 +158,7 @@ char *SuperNET_processJSON(struct supernet_info *myinfo,cJSON *json,char *remote jdelete(retjson,"tag"); jadd64bits(retjson,"tag",tag); retstr = jprint(retjson,1); - //printf("retstr.(%s) retjsonstr.%p retjson.%p\n",retstr,retjsonstr,retjson); + printf("retstr.(%s) retjsonstr.%p retjson.%p\n",retstr,retjsonstr,retjson); free(retjsonstr);//,strlen(retjsonstr)+1); } else retstr = retjsonstr; }