From: Pauli Date: Sun, 28 Jun 2020 22:33:35 +0000 (+1000) Subject: coverity 1464984: Null pointer dereferences X-Git-Tag: openssl-3.0.0-alpha5~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f924bb89ecb792dc1ecaa3454086f3772ba5c74;p=thirdparty%2Fopenssl.git coverity 1464984: Null pointer dereferences Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/12309) --- diff --git a/crypto/property/property.c b/crypto/property/property.c index a72ccb02b4d..a3b52ee44d5 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;