]> tinc-vpn.org Git - tinc/blobdiff - src/protocol_key.c
Remember whether we sent our key to another node.
[tinc] / src / protocol_key.c
index aaf0f3309261db1dafe40659165758157042b1c6..d373858c95977c05068229852b3b6f3adbc0b45b 100644 (file)
@@ -303,6 +303,8 @@ bool send_ans_key(node_t *to) {
        to->received = 0;
        if(replaywin) memset(to->late, 0, replaywin);
 
+       to->status.validkey_in = true;
+
        return send_request(to->nexthop->connection, "%d %s %s %s %d %d %d %d", ANS_KEY,
                                                myself->name, to->name, key,
                                                cipher_get_nid(to->incipher),