projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "EC_KEY_priv2buf (): check parameter sanity"
[openssl.git]
/
crypto
/
ec
/
ec_key.c
diff --git
a/crypto/ec/ec_key.c
b/crypto/ec/ec_key.c
index 439cfa27cc56663328619dee71d1a40202a5373c..c382e7e41e5f8d92478b55f07f58dbd835365661 100644
(file)
--- 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;