Really avoid trying to send an ANS_KEY request to unreachable nodes.
[tinc] / src / protocol_key.c
index c15c4f6..a9d719b 100644 (file)
@@ -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? */