From c35bfa18ec49439d4a028990fcf0ae6d8c4508a5 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 12 May 2014 15:56:29 +0200 Subject: [PATCH] Fix a crash when we have a malformed public ECDSA key of another node. --- src/protocol_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 52afa09..0904afd 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -379,7 +379,8 @@ bool id_h(connection_t *c, const char *request) { } if(experimental) - read_ecdsa_public_key(c); + if(!read_ecdsa_public_key(c)) + return false; } else { if(c->protocol_minor && !ecdsa_active(c->ecdsa)) c->protocol_minor = 1; -- 2.25.1