From 9910f8f2d168fcd7e64444b864cbc6913c189aff Mon Sep 17 00:00:00 2001 From: thorkill Date: Sat, 4 Apr 2015 20:16:42 +0200 Subject: [PATCH] Fixed a SIGABRT in send_ans_key(). In some cases the remote host does not know our key but we have got theirs. So we send him our key but send_ans_key() aborted on this point. --- src/protocol_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol_key.c b/src/protocol_key.c index 8cbec1be..baa85e29 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -263,7 +263,7 @@ bool req_key_h(connection_t *c, const char *request) { } bool send_ans_key(node_t *to) { - if(to->status.sptps) + if(to->status.sptps && to->status.validkey_in) abort(); #ifdef DISABLE_LEGACY