]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: Fix mem and FILE leaks in moduli screening.
authordtucker@openbsd.org <dtucker@openbsd.org>
Sun, 5 Mar 2023 09:24:35 +0000 (09:24 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 5 Mar 2023 09:33:29 +0000 (20:33 +1100)
commitaa59d6a489fb20973fa461d0fdb1110db412947b
tree2a8a289c41423e1265de1b3f11d055d13b35e62a
parent23b8cb41767af99a1aac24589d1882d9c8c2c205
upstream: 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.

OpenBSD-Commit-ID: a4d9d15f572926f841788912e2b282485ad09e8b
ssh-keygen.c