X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=6140a5321ece9be3815d03a9a689c4f14c36084d;hp=ee292b65448dcee3e043ffd4a71cec0ad2cf96a2;hb=e97943b7cc9c851ae36f5a41e2b6102faa74193f;hpb=d3297fbd3b8c8c8a4661f5bbf89aca5cacba8b5a diff --git a/src/protocol_key.c b/src/protocol_key.c index ee292b65..6140a532 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -286,6 +286,11 @@ bool ans_key_h(connection_t *c) { return true; } } else { + if(from->outkeylength != 1) { + logger(LOG_ERR, "Node %s (%s) uses wrong keylength!", from->name, from->hostname); + return true; + } + from->outcipher = NULL; }