projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edef99
)
Send PKT_PROBE only when handshake has been done already.
author
thorkill
<thkr@hannover.ccc.de>
Wed, 11 May 2016 17:27:05 +0000
(19:27 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 12 May 2016 09:20:41 +0000
(11:20 +0200)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index 21e6c2ac4a64a81a4b398802c84be5f8a578db48..44214df4f0e60d6412419bf88cbc303a61b37d6b 100644
(file)
--- 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;
}