projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "EVP_*Update: ensure that input NULL with length 0 isn't passed"
[oweals/openssl.git]
/
crypto
/
evp
/
bio_b64.c
diff --git
a/crypto/evp/bio_b64.c
b/crypto/evp/bio_b64.c
index 737758b4ab1036083c96d8b80c2a1ce25ff85786..9f891f7626a6164f06b6abd7ef81301c3e2fdc80 100644
(file)
--- a/
crypto/evp/bio_b64.c
+++ b/
crypto/evp/bio_b64.c
@@
-70,9
+70,10
@@
static int b64_new(BIO *bi)
{
BIO_B64_CTX *ctx;
- ctx = OPENSSL_zalloc(sizeof(*ctx));
- if (ctx == NULL)
+ if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) {
+ EVPerr(EVP_F_B64_NEW, ERR_R_MALLOC_FAILURE);
return 0;
+ }
ctx->cont = 1;
ctx->start = 1;