Browse Source

test

etomic
jl777 8 years ago
parent
commit
74b7e39e57
  1. 6
      iguana/dpow/dpow_network.c

6
iguana/dpow/dpow_network.c

@ -86,11 +86,11 @@ int32_t signed_nn_recv(void **freeptrp,void *ctx,struct dpow_entry *notaries,int
} else printf("hash mismatch or bad nonce.%u packetlen.%d\n",sigpacket->nonce,sigpacket->packetlen); } else printf("hash mismatch or bad nonce.%u packetlen.%d\n",sigpacket->nonce,sigpacket->packetlen);
} //else printf("recvbytes.%d mismatched packetlen.%d + %ld\n",recvbytes,sigpacket->packetlen,sizeof(*sigpacket)); } //else printf("recvbytes.%d mismatched packetlen.%d + %ld\n",recvbytes,sigpacket->packetlen,sizeof(*sigpacket));
//printf("free sigpacket.%p freeptrp.%p packetp.%p\n",sigpacket,*freeptrp,*(void **)packetp); //printf("free sigpacket.%p freeptrp.%p packetp.%p\n",sigpacket,*freeptrp,*(void **)packetp);
//if ( sigpacket != 0 ) if ( sigpacket != 0 )
// nn_freemsg(sigpacket); nn_freemsg(sigpacket), sigpacket = 0;
*freeptrp = sigpacket; *freeptrp = sigpacket;
*(void **)packetp = sigpacket; *(void **)packetp = sigpacket;
return(recvbytes); return(0);
} }
struct dex_nanomsghdr struct dex_nanomsghdr

Loading…
Cancel
Save