Try handling the case when the first side knows the ecdsa key of

the second, but the second not the key of the first.
(And both have the experimental protocol enabled)
This commit is contained in:
Sven-Haegar Koch 2014-12-05 03:06:44 +01:00 committed by Guus Sliepen
parent b90c42a33b
commit 148a4c9161

View file

@ -381,11 +381,11 @@ bool id_h(connection_t *c, const char *request) {
if(experimental)
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;
}
if(c->protocol_minor && !ecdsa_active(c->ecdsa))
c->protocol_minor = 1;
/* Forbid version rollback for nodes whose Ed25519 key we know */
if(ecdsa_active(c->ecdsa) && c->protocol_minor < 2) {