Commit e99871aa authored by Niels Möller's avatar Niels Möller
Browse files

* src/keyexchange.c (do_kexinit_filter): Don't crash if there are

no appropriate hostkeys.

Rev: src/keyexchange.c:1.75
parent e0d0b6d5
......@@ -723,11 +723,14 @@ do_kexinit_filter(struct command *s,
= filter_algorithms(keys, self->init->hostkey_algorithms);
if (!LIST_LENGTH(self->init->hostkey_algorithms))
if (!self->init->hostkey_algorithms)
werror("No hostkey algorithms advertised.\n");
self->init->hostkey_algorithms = make_int_list(1, ATOM_NONE, -1);
COMMAND_RETURN(c, self->init);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment