invalidate dh->priv_key after freeing it in error path; avoids
authordjm <djm@openbsd.org>
Sat, 4 Aug 2018 00:55:06 +0000 (00:55 +0000)
committerdjm <djm@openbsd.org>
Sat, 4 Aug 2018 00:55:06 +0000 (00:55 +0000)
commit5d67f2c4e9ba52e0cb9a514ed61019b919c72212
treef91816b0ff7080ee3c6d1cc17fa4cb1436117008
parent1094f1ecb4ce8d48ec0d6d9ffc3f90926fb699bb
invalidate dh->priv_key after freeing it in error path; avoids
unlikely double-free later. Reported by Viktor Dukhovni via
https://github.com/openssh/openssh-portable/pull/96
feedback jsing@ tb@
usr.bin/ssh/dh.c