Blame SOURCES/gnutls-3.1.18-v1-fix.patch

127c81
diff --git a/lib/x509/verify.c b/lib/x509/verify.c
127c81
index cb8289e..86a901e 100644
127c81
--- a/lib/x509/verify.c
127c81
+++ b/lib/x509/verify.c
127c81
@@ -674,7 +674,10 @@ _gnutls_x509_verify_certificate (const gnutls_x509_crt_t * certificate_list,
127c81
        * certificates can exist in a supplied chain.
127c81
        */
127c81
       if (!(flags & GNUTLS_VERIFY_ALLOW_ANY_X509_V1_CA_CRT))
127c81
-        flags &= ~(GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT);
127c81
+        {
127c81
+          flags &= ~(GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT);
127c81
+          flags |= GNUTLS_VERIFY_DO_NOT_ALLOW_X509_V1_CA_CRT;
127c81
+        }
127c81
       if ((ret =
127c81
            _gnutls_verify_certificate2 (certificate_list[i - 1],
127c81
                                         &certificate_list[i], 1, flags,