X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=fbd7cabb8babafdd89fd09ac16a4fa46254bc8f8;hp=b326b8d70a1fb75657f95080dec51079fa876ab1;hb=23acc19bc090051156ad895caed61848f5afb144;hpb=8dfe1b374e165ecba5d3ae324ee834d337476be8 diff --git a/src/protocol_key.c b/src/protocol_key.c index b326b8d7..fbd7cabb 100644 --- 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];