Always return allocated strings from the kex filtering so that we
authordtucker <dtucker@openbsd.org>
Fri, 1 Jul 2022 03:35:45 +0000 (03:35 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 1 Jul 2022 03:35:45 +0000 (03:35 +0000)
commitadb2d7968b07cf1d244c6a6624c32d0627811ffc
tree1b0d47d1bd8d40b754af3c5bb6aa2f687e0b9bad
parent25c8dd240bb9b74de617d0cf96b20ad9c8552c5f
Always return allocated strings from the kex filtering so that we
can free them later.  Fix one leak in compat_kex_proposal.  Based
on github PR#324 from ZoltanFridrich with some simplications by me.
ok djm@
usr.bin/ssh/compat.c