Fix mem and FILE leaks in moduli screening.
authordtucker <dtucker@openbsd.org>
Sun, 5 Mar 2023 09:24:35 +0000 (09:24 +0000)
committerdtucker <dtucker@openbsd.org>
Sun, 5 Mar 2023 09:24:35 +0000 (09:24 +0000)
commite33eefbd0d878957231fe0ac89f9cbd6b1fa5a1a
tree2dddb6095d6a1d341c1d6fa2ffcb9e7c9cff0f46
parent45690865693d6075b5d6937545cf15b5f6e73cae
Fix mem and FILE leaks in moduli screening.

If multiple -Ocheckpoint= options are passed, the earlier ones would
be overwritten and leaked.  If we use an input file that wasn't stdin,
close that.  From Coverity CIDs 291884 and 291894.
usr.bin/ssh/ssh-keygen.c