X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_misc.c;h=b68179dc36f050510ec8dd2d012b6540e81e42e0;hb=1aa8ac8c41ab8580fce1956086d7e6c7e84a09ee;hp=0263d0016843eea310a90bf7a41e9183d68b0049;hpb=a5c6c6ea1ab657d83a4d8b064ac9bfa9c16adf63;p=tinc diff --git a/src/protocol_misc.c b/src/protocol_misc.c index 0263d001..b68179dc 100644 --- a/src/protocol_misc.c +++ b/src/protocol_misc.c @@ -68,7 +68,8 @@ bool pong_h(connection_t *c, const char *request) { if(c->outgoing && c->outgoing->timeout) { c->outgoing->timeout = 0; - reset_address_cache(c->outgoing->node->address_cache, &c->address); + reset_address_cache(c->node->address_cache); + add_recent_address(c->node->address_cache, &c->address); } return true;