From: Saverio Proto Date: Sat, 12 Apr 2014 16:33:32 +0000 (+0200) Subject: put value in packet.len X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8d7a4c48cac3708dc8bc88b7d6ede01b80268b4d;p=meshlink put value in packet.len --- diff --git a/src/libmeshlink.c b/src/libmeshlink.c index e88b20c4..00eaa09c 100644 --- a/src/libmeshlink.c +++ b/src/libmeshlink.c @@ -575,6 +575,7 @@ bool tinc_send_packet(node_t *receiver, const char* buf, unsigned int len) { memcpy(hdr->source,myself->name,sizeof(hdr->source)); packet.priority = 0; + packet.len = sizeof(tincpackethdr) + len; memcpy(packet.data,hdr,32); memcpy(packet.data+32,buf,len);