From: Guus Sliepen Date: Tue, 27 Jul 2021 12:57:18 +0000 (+0200) Subject: Really avoid trying to send an ANS_KEY request to unreachable nodes. X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=e050753d1fc4d4465032919746c2a4db78f19932;p=tinc Really avoid trying to send an ANS_KEY request to unreachable nodes. Commit ed070d754d1b5500b0ec3615ae342178cfd42efb only printed a warning, but was missing a return statement. --- diff --git a/src/protocol_key.c b/src/protocol_key.c index c15c4f6e..a9d719bb 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -300,6 +300,7 @@ bool req_key_h(connection_t *c, const char *request) { if(!from->status.reachable) { logger(DEBUG_ALWAYS, LOG_ERR, "Got %s from %s (%s) origin %s which is not reachable", "REQ_KEY", c->name, c->hostname, from_name); + return true; } /* Is this an extended REQ_KEY message? */