Ensure packet priority is cleared when sending PMTU probe replies.
[tinc] / src / net_packet.c
index ed04a85..5d559bd 100644 (file)
@@ -1,7 +1,7 @@
 /*
     net_packet.c -- Handles in- and outgoing VPN packets
     Copyright (C) 1998-2005 Ivo Timmermans,
-                  2000-2016 Guus Sliepen <guus@tinc-vpn.org>
+                  2000-2017 Guus Sliepen <guus@tinc-vpn.org>
                   2010      Timothy Redaelli <timothy@redaelli.eu>
                   2010      Brandon Black <blblack@gmail.com>
 
@@ -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) {