Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c5802bb791
  1. 4
      iguana/iguana_json.c
  2. 1
      iguana/iguana_msg.c

4
iguana/iguana_json.c

@ -550,8 +550,8 @@ char *SuperNET_p2p(struct iguana_info *coin,int32_t *delaymillisp,char *ipaddr,u
{
if ( jobj(retjson,"result") != 0 || jobj(retjson,"error") != 0 || jobj(retjson,"method") == 0 )
{
free(retstr);
retstr = 0;
//free(retstr);
//retstr = 0;
}
free_json(retjson);
}

1
iguana/iguana_msg.c

@ -430,6 +430,7 @@ int32_t iguana_parser(struct iguana_info *coin,struct iguana_peer *addr,struct O
//printf("%s parse.(%s)\n",addr->ipaddr,H->command);
if ( strcmp(H->command,"SuperNET") == 0 )
{
addr->supernet = 1;
len = recvlen;
if ( (retstr= SuperNET_p2p(coin,&delay,addr->ipaddr,data,recvlen)) != 0 )
{

Loading…
Cancel
Save