summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-09-08 18:29:58 +1000
committerPauli <paul.dale@oracle.com>2019-09-11 08:27:26 +1000
commit6ce4ff19158273ccf3313d5ece6adbd8bda0ac4b (patch)
treec34c59fad51a3460e274c6c21dd808c440e289af /crypto
parent7e56c626936f7070070cf989053dc0011a9bca9c (diff)
Coverity 1453628: Null pointer dereferences (REVERSE_INULL)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/9805)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/kdf_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/kdf_lib.c b/crypto/evp/kdf_lib.c
index aa0c5e341f..dedb250988 100644
--- a/crypto/evp/kdf_lib.c
+++ b/crypto/evp/kdf_lib.c
@@ -59,7 +59,7 @@ EVP_KDF_CTX *EVP_KDF_CTX_dup(const EVP_KDF_CTX *src)
{
EVP_KDF_CTX *dst;
- if (src->data == NULL || src == NULL || src->meth->dupctx == NULL)
+ if (src == NULL || src->data == NULL || src->meth->dupctx == NULL)
return NULL;
dst = OPENSSL_malloc(sizeof(*dst));