Fix eckey_priv_encode to return an error on failure of i2d_ECPrivateKey.
Changes between 1.0.1g and 1.0.1h [xx XXX xxxx]
+ *) Fix eckey_priv_encode so it immediately returns an error upon a failure
+ in i2d_ECPrivateKey.
+ [mancha <mancha1@zoho.com>]
+
*) Fix some double frees. These are not thought to be exploitable.
[mancha <mancha1@zoho.com>]
EC_KEY_set_enc_flags(ec_key, old_flags);
OPENSSL_free(ep);
ECerr(EC_F_ECKEY_PRIV_ENCODE, ERR_R_EC_LIB);
+ return 0;
}
/* restore old encoding flags */
EC_KEY_set_enc_flags(ec_key, old_flags);