diff options
author | Rich Salz <rsalz@akamai.com> | 2016-02-26 14:11:46 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-26 14:51:25 -0500 |
commit | afcee950b4559a3975bde06c484e98eddef5837e (patch) | |
tree | 06f215672eab5a97fab21fb1cbdb4657b4aea754 /crypto | |
parent | 875856efd6a6f5d3e6f32661e0e50afcea5bcb62 (diff) |
Revert "EC_KEY_priv2buf (): check parameter sanity"
This reverts commit acae59bb29ddc769743ab4a8ae373b5ff2f42b57.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ec/ec_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index 439cfa27cc..c382e7e41e 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -583,8 +583,8 @@ size_t EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf) size_t len; unsigned char *buf; len = EC_KEY_priv2oct(eckey, NULL, 0); - if (len == 0 || pbuf == NULL) - return len; + if (len == 0) + return 0; buf = OPENSSL_malloc(len); if (buf == NULL) return 0; |