From: Guus Sliepen Date: Sat, 2 Sep 2017 19:54:34 +0000 (+0200) Subject: Ensure packet priority is cleared when sending PMTU probe replies. X-Git-Tag: release-1.1pre15~2 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=91d50f8b375503be6b6081985f5948773d64b9d3 Ensure packet priority is cleared when sending PMTU probe replies. Found by the Clang static analyzer. --- diff --git a/src/net_packet.c b/src/net_packet.c index ed04a85d..5d559bd8 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -1,7 +1,7 @@ /* net_packet.c -- Handles in- and outgoing VPN packets Copyright (C) 1998-2005 Ivo Timmermans, - 2000-2016 Guus Sliepen + 2000-2017 Guus Sliepen 2010 Timothy Redaelli 2010 Brandon Black @@ -846,6 +846,7 @@ bool receive_sptps_record(void *handle, uint8_t type, const void *data, uint16_t vpn_packet_t inpkt; inpkt.offset = DEFAULT_PACKET_OFFSET; + inpkt.priority = 0; if(type == PKT_PROBE) { if(!from->status.udppacket) {