projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f77f82
)
old_hmac_encode: check for NULL result when allocating *pder
author
Jonas Maebe
<jonas.maebe@elis.ugent.be>
Sun, 8 Dec 2013 17:12:13 +0000
(18:12 +0100)
committer
Kurt Roeckx
<kurt@roeckx.be>
Sun, 17 Aug 2014 16:52:44 +0000
(18:52 +0200)
Signed-off-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/hmac/hm_ameth.c
patch
|
blob
|
history
diff --git
a/crypto/hmac/hm_ameth.c
b/crypto/hmac/hm_ameth.c
index a6aa7931108c6d5ab4d222da1de53edb3782977c..3d998e94da861f0ea20a17a324d927614b10134d 100644
(file)
--- a/
crypto/hmac/hm_ameth.c
+++ b/
crypto/hmac/hm_ameth.c
@@
-123,6
+123,8
@@
static int old_hmac_encode(const EVP_PKEY *pkey, unsigned char **pder)
if (!*pder)
{
*pder = OPENSSL_malloc(os->length);
+ if (*pder == NULL)
+ return -1;
inc = 0;
}
else inc = 1;