Blame SOURCES/openssl-1.0.2k-cve-2021-23841.patch

bc5401
diff -up openssl-1.0.2k/crypto/x509/x509_cmp.c.null-hash-deref openssl-1.0.2k/crypto/x509/x509_cmp.c
bc5401
--- openssl-1.0.2k/crypto/x509/x509_cmp.c.null-hash-deref	2021-09-01 14:13:51.247986607 +0200
bc5401
+++ openssl-1.0.2k/crypto/x509/x509_cmp.c	2021-09-01 14:15:13.542078900 +0200
bc5401
@@ -88,6 +88,8 @@ unsigned long X509_issuer_and_serial_has
bc5401
     EVP_MD_CTX_init(&ctx;;
bc5401
     EVP_MD_CTX_set_flags(&ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
bc5401
     f = X509_NAME_oneline(a->cert_info->issuer, NULL, 0);
bc5401
+    if (f == NULL)
bc5401
+        goto err;
bc5401
     if (!EVP_DigestInit_ex(&ctx, EVP_md5(), NULL))
bc5401
         goto err;
bc5401
     if (!EVP_DigestUpdate(&ctx, (unsigned char *)f, strlen(f)))