projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
X509_cmp_time: only return 1, 0, -1.
[openssl.git]
/
crypto
/
dh
/
dh_ameth.c
diff --git
a/crypto/dh/dh_ameth.c
b/crypto/dh/dh_ameth.c
index ac72468bd14bf0a1b559cf8ac6bd146443a01d84..4558283576b374060d184c9b2b30f5d87ef2b7ec 100644
(file)
--- a/
crypto/dh/dh_ameth.c
+++ b/
crypto/dh/dh_ameth.c
@@
-519,7
+519,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;
}