X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=115845a0e206777e13df93aba2455feb4a5e3636;hb=cc3c69c892b0dad9a6ece0a0f4ccd429a22fcbff;hp=b54df3c8292998370c4664eb03f2166cb093d7f1;hpb=44a24f63acc70d19904e5540986b8301b3c9b882;p=tinc diff --git a/src/protocol_key.c b/src/protocol_key.c index b54df3c8..115845a0 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -1,7 +1,7 @@ /* protocol_key.c -- handle the meta-protocol, key exchange Copyright (C) 1999-2005 Ivo Timmermans, - 2000-2012 Guus Sliepen + 2000-2013 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -278,6 +278,7 @@ bool send_ans_key(node_t *to) { // Reset sequence number and late packet window mykeyused = true; to->received_seqno = 0; + to->received = 0; if(replaywin) memset(to->late, 0, replaywin); return send_request(to->nexthop->connection, "%d %s %s %s %d %d %d %d", ANS_KEY,