HomePhabricator

dh-gex: fix moduli file stream leak

Authored by simonsj on Jan 30 2019, 1:43 AM.

Description

dh-gex: fix moduli file stream leak

Ensure to close the moduli file stream in ssh_retrieve_dhgroup.
The leak is observable with the pkd tests and valgrind with:

valgrind \
  --track-fds=yes \
  ./pkd_hello -i1 \
  -t torture_pkd_openssh_rsa_rsa_diffie_hellman_group_exchange_sha256

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnJan 30 2019, 1:22 PM
Parents
rLIBSSH04c97c0eafb8: session: Repects timeout=0 for packets on blocking sessions
Branches
Unknown
Tags
Unknown