Don't leak the strings allocated by order_hostkeyalgs() and
authordtucker <dtucker@openbsd.org>
Fri, 1 Jul 2022 03:39:44 +0000 (03:39 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 1 Jul 2022 03:39:44 +0000 (03:39 +0000)
commit0c7793e63650862296905b8935667fb89b91184c
tree5aa279d086fb80cd7f7c71ba13ed80ed97c9ade2
parentadb2d7968b07cf1d244c6a6624c32d0627811ffc
Don't leak the strings allocated by order_hostkeyalgs() and
list_hostkey_types() that are passed to compat_pkalg_proposal().
Part of github PR#324 from ZoltanFridrich, ok djm@

This is a roll-forward of the previous rollback now that the required
changes in compat.c have been done.
usr.bin/ssh/sshconnect2.c
usr.bin/ssh/sshd.c