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:
41a6d55
)
mac poly1305: add missing NULL check in new function.
author
Pauli
<paul.dale@oracle.com>
Wed, 11 Dec 2019 21:34:46 +0000
(07:34 +1000)
committer
Pauli
<paul.dale@oracle.com>
Fri, 13 Dec 2019 00:31:28 +0000
(10:31 +1000)
Bug reported by Kihong Heo.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10613)
providers/implementations/macs/poly1305_prov.c
patch
|
blob
|
history
diff --git
a/providers/implementations/macs/poly1305_prov.c
b/providers/implementations/macs/poly1305_prov.c
index 950704620f46c9d0784a751fb54965fc2dae50d7..1edd2dc06312a60270ca7c98c613f463be5ba305 100644
(file)
--- a/
providers/implementations/macs/poly1305_prov.c
+++ b/
providers/implementations/macs/poly1305_prov.c
@@
-45,7
+45,8
@@
static void *poly1305_new(void *provctx)
{
struct poly1305_data_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
- ctx->provctx = provctx;
+ if (ctx != NULL)
+ ctx->provctx = provctx;
return ctx;
}