From 8fa228ebf1a90c00b9f0aa1f47278f517c768049 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 30 Aug 2016 01:31:37 -0300 Subject: [PATCH] test --- basilisk/basilisk_MSG.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 2ecb4a39d..65243b2d5 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -18,7 +18,8 @@ char *basilisk_respond_addmessage(struct supernet_info *myinfo,uint8_t *key,int32_t keylen,uint8_t *data,int32_t datalen,int32_t sendping,uint32_t duration) { struct basilisk_message *msg; int32_t i; - if ( keylen == BASILISK_KEYSIZE ) + HASH_FIND(hh,myinfo->messagetable,key,keylen,msg); + if ( msg == 0 && keylen == BASILISK_KEYSIZE ) { msg = calloc(1,sizeof(*msg) + datalen); if ( duration == 0 )