From 6f924bb89ecb792dc1ecaa3454086f3772ba5c74 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 29 Jun 2020 08:33:35 +1000 Subject: coverity 1464984: Null pointer dereferences Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/12309) --- crypto/property/property.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/property') diff --git a/crypto/property/property.c b/crypto/property/property.c index a72ccb02b4..a3b52ee44d 100644 --- a/crypto/property/property.c +++ b/crypto/property/property.c @@ -324,7 +324,7 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, const char *prop_query, void **method) { - OSSL_PROPERTY_LIST **plp = ossl_ctx_global_properties(store->ctx); + OSSL_PROPERTY_LIST **plp; ALGORITHM *alg; IMPLEMENTATION *impl; OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL; @@ -350,9 +350,9 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, return 0; } - if (prop_query != NULL) { + if (prop_query != NULL) p2 = pq = ossl_parse_query(store->ctx, prop_query); - } + plp = ossl_ctx_global_properties(store->ctx); if (plp != NULL && *plp != NULL) { if (pq == NULL) { pq = *plp; -- cgit v1.2.3