projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Configurable ReplayWindow size, zero disables
[oweals/tinc.git]
/
src
/
protocol_key.c
diff --git
a/src/protocol_key.c
b/src/protocol_key.c
index b326b8d70a1fb75657f95080dec51079fa876ab1..fbd7cabb8babafdd89fd09ac16a4fa46254bc8f8 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;
-
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];