Send PKT_PROBE only when handshake has been done already.

This commit is contained in:
thorkill 2016-05-11 19:27:05 +02:00
parent a84019cf10
commit 62064cc5ef

View file

@ -503,7 +503,7 @@ static void send_sptps_packet(node_t *n, vpn_packet_t *origpkt) {
uint8_t type = 0; uint8_t type = 0;
int offset = 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); sptps_send_record(&n->sptps, PKT_PROBE, (char *)DATA(origpkt), origpkt->len);
return; return;
} }