dsa_priv_decode(): only destroy the object we've created, and with the
authormiod <miod@openbsd.org>
Sun, 13 Jul 2014 12:45:01 +0000 (12:45 +0000)
committermiod <miod@openbsd.org>
Sun, 13 Jul 2014 12:45:01 +0000 (12:45 +0000)
commiteb569843305aef54534838ba5b2f87ff5f447eb8
tree8a3debc3c6257e7ed2c09ebc4484222e26fb3c86
parent2f7bef27e65e1d4700b333a09903fd93487b8c46
dsa_priv_decode(): only destroy the object we've created, and with the
  appropriate function. Checking for privkey != NULL is not enough since
  privkey points to a member of ndsa if ndsa != NULL.
dsa_priv_encode(): possible double free in error path.
lib/libcrypto/dsa/dsa_ameth.c
lib/libssl/src/crypto/dsa/dsa_ameth.c