From 1022020d59e37aa63244c292b01d78d80a6f8b20 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 13 Jan 2017 14:52:54 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_network.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/dpow/dpow_network.c b/iguana/dpow/dpow_network.c index 11ca373a6..d12dd636b 100755 --- a/iguana/dpow/dpow_network.c +++ b/iguana/dpow/dpow_network.c @@ -76,11 +76,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("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); - if ( sigpacket != 0 ) - nn_freemsg(sigpacket); - *freeptrp = 0; - *(void **)packetp = 0; - return(-1); + //if ( sigpacket != 0 ) + // nn_freemsg(sigpacket); + *freeptrp = sigpacket; + *(void **)packetp = sigpacket; + return(recvbytes); } struct dex_nanomsghdr