projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DragonFlyBSD support
[tinc]
/
src
/
protocol_key.c
diff --git
a/src/protocol_key.c
b/src/protocol_key.c
index
b326b8d
..
e2e4be5
100644
(file)
--- a/
src/protocol_key.c
+++ b/
src/protocol_key.c
@@
-163,7
+163,7
@@
bool send_ans_key(node_t *to) {
// Reset sequence number and late packet window
mykeyused = true;
to->received_seqno = 0;
// Reset sequence number and late packet window
mykeyused = true;
to->received_seqno = 0;
-
memset(to->late, 0, sizeof(to->late)
);
+
if(replaywin) memset(to->late, 0, replaywin
);
// Convert to hexadecimal and send
char key[2 * to->inkeylength + 1];
// Convert to hexadecimal and send
char key[2 * to->inkeylength + 1];
@@
-310,7
+310,7
@@
bool ans_key_h(connection_t *c) {
update_node_udp(from, &sa);
}
update_node_udp(from, &sa);
}
- if(from->options & OPTION_PMTU_DISCOVERY && !from->mtu
probes
)
+ if(from->options & OPTION_PMTU_DISCOVERY && !from->mtu
event
)
send_mtu_probe(from);
return true;
send_mtu_probe(from);
return true;