[openssl] Initialize X509_OBJECT before usage
([arc::pullid] 7018641-ddf4097b-c3880d05-3419c93f)
Note: mandatory check (NEED_CHECK) was skipped
@@ -297,6 +297,8 @@ int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,
if (ctx == NULL)
return 0;
+ stmp.type = X509_LU_NONE;
+
CRYPTO_THREAD_write_lock(ctx->lock);
tmp = X509_OBJECT_retrieve_by_subject(ctx->objs, type, name);
CRYPTO_THREAD_unlock(ctx->lock);
