From: thorkill Date: Wed, 11 May 2016 17:27:05 +0000 (+0200) Subject: Send PKT_PROBE only when handshake has been done already. X-Git-Tag: release-1.1pre15~75 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=0cf943753ab16704c818bebe74b4e7ea96399b05;p=tinc Send PKT_PROBE only when handshake has been done already. --- diff --git a/src/net_packet.c b/src/net_packet.c index 21e6c2ac..44214df4 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -499,7 +499,7 @@ static void send_sptps_packet(node_t *n, vpn_packet_t *origpkt) { uint8_t type = 0; int offset = 0; - if(!(DATA(origpkt)[12] | DATA(origpkt)[13])) { + if((!(DATA(origpkt)[12] | DATA(origpkt)[13])) && (n->sptps.outstate)) { sptps_send_record(&n->sptps, PKT_PROBE, (char *)DATA(origpkt), origpkt->len); return; }