projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Parameter copy sanity checks.
[openssl.git]
/
crypto
/
dh
/
dh_ameth.c
diff --git
a/crypto/dh/dh_ameth.c
b/crypto/dh/dh_ameth.c
index 222cb20b4248b42f2837a5d817a529cb71c067d1..b7b37177c160174b06a390330e215ec4bc4383d0 100644
(file)
--- a/
crypto/dh/dh_ameth.c
+++ b/
crypto/dh/dh_ameth.c
@@
-437,7
+437,7
@@
static int dh_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
static int dh_missing_parameters(const EVP_PKEY *a)
{
- if (
!a->pkey.dh->p || !a->pkey.dh->g
)
+ if (
a->pkey.dh == NULL || a->pkey.dh->p == NULL || a->pkey.dh->g == NULL
)
return 1;
return 0;
}