From: Guus Sliepen Date: Sun, 29 May 2011 20:14:35 +0000 (+0200) Subject: Initialise priority field to zero for packets read from the VPN interface. X-Git-Tag: import-tinc-1.1~506 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d29bfc9a450b4758e44757a71675bac631dd3c55;p=meshlink Initialise priority field to zero for packets read from the VPN interface. --- diff --git a/src/net_packet.c b/src/net_packet.c index 1805cf7e..95f29617 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -648,6 +648,8 @@ void handle_incoming_vpn_data(int sock, short events, void *data) { void handle_device_data(int sock, short events, void *data) { vpn_packet_t packet; + packet.priority = 0; + if(read_packet(&packet)) { myself->in_packets++; myself->in_bytes += packet.len;