Coverity 1453628: Null pointer dereferences (REVERSE_INULL)
authorPauli <paul.dale@oracle.com>
Sun, 8 Sep 2019 08:29:58 +0000 (18:29 +1000)
committerPauli <paul.dale@oracle.com>
Tue, 10 Sep 2019 22:27:26 +0000 (08:27 +1000)
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/9805)

crypto/evp/kdf_lib.c

index aa0c5e341f6ec35524e3bfdc145e55d71433144c..dedb250988f674ba3d5b4f6db5689de10ffec554 100644 (file)
@@ -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));