X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=d4a0b17401b3e31743170870291dfb96c520518d;hp=6140a5321ece9be3815d03a9a689c4f14c36084d;hb=b8495a806b083bdd63a5ed3ef35e5badb415c7f4;hpb=f7f7d8b15e12471c95bbd291195e83c5126a0631 diff --git a/src/protocol_key.c b/src/protocol_key.c index 6140a532..d4a0b174 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -131,6 +131,12 @@ bool req_key_h(connection_t *c) { /* Check if this key request is for us */ if(to == myself) { /* Yes, send our own key back */ + if(!from->status.reachable) { + logger(LOG_WARNING, "Got %s from %s (%s) origin %s which is not reachable", + "REQ_KEY", c->name, c->hostname, from_name); + return true; + } + if(!send_ans_key(from)) { return false; }