From 0cf943753ab16704c818bebe74b4e7ea96399b05 Mon Sep 17 00:00:00 2001 From: thorkill Date: Wed, 11 May 2016 19:27:05 +0200 Subject: [PATCH] Send PKT_PROBE only when handshake has been done already. --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index 21e6c2a..44214df 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; } -- 2.25.1