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.
This commit is contained in:
thorkill 2015-04-04 20:16:42 +02:00
parent df42bc3621
commit 9910f8f2d1

View file

@ -263,7 +263,7 @@ bool req_key_h(connection_t *c, const char *request) {
} }
bool send_ans_key(node_t *to) { bool send_ans_key(node_t *to) {
if(to->status.sptps) if(to->status.sptps && to->status.validkey_in)
abort(); abort();
#ifdef DISABLE_LEGACY #ifdef DISABLE_LEGACY