Do not disconnect when no ecdsa key is known yet.

This is the normal case when we support the experimental protocol,
but the other side is a tinc 1.0 which does not.
This commit is contained in:
Sven-Haegar Koch 2014-12-05 02:41:55 +01:00 committed by Guus Sliepen
parent dd6b0e65b9
commit 5716c8877f

View file

@ -379,8 +379,8 @@ bool id_h(connection_t *c, const char *request) {
}
if(experimental)
if(!read_ecdsa_public_key(c))
return false;
read_ecdsa_public_key(c);
/* Ignore failures if no key known yet */
} else {
if(c->protocol_minor && !ecdsa_active(c->ecdsa))
c->protocol_minor = 1;