Blame SOURCES/CVE-2019-11324.patch

6bbd3e
From 54e768a6dbe3cadeb456dea37bbeaf6e1e17e87c Mon Sep 17 00:00:00 2001
6bbd3e
From: Lumir Balhar <lbalhar@redhat.com>
6bbd3e
Date: Thu, 9 Jan 2020 10:47:27 +0100
6bbd3e
Subject: [PATCH] CVE-2019-11324 Certification mishandle when error should be
6bbd3e
 thrown
6bbd3e
6bbd3e
---
6bbd3e
 util/ssl_.py | 2 +-
6bbd3e
 1 file changed, 1 insertion(+), 1 deletion(-)
6bbd3e
6bbd3e
diff --git a/util/ssl_.py b/util/ssl_.py
6bbd3e
index 32fd9ed..f9f12ff 100644
6bbd3e
--- a/util/ssl_.py
6bbd3e
+++ b/util/ssl_.py
6bbd3e
@@ -319,7 +319,7 @@ def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,
6bbd3e
             if e.errno == errno.ENOENT:
6bbd3e
                 raise SSLError(e)
6bbd3e
             raise
6bbd3e
-    elif getattr(context, 'load_default_certs', None) is not None:
6bbd3e
+    elif ssl_context is None and hasattr(context, 'load_default_certs'):
6bbd3e
         # try to load OS default certs; works well on Windows (require Python3.4+)
6bbd3e
         context.load_default_certs()
6bbd3e
 
6bbd3e
-- 
6bbd3e
2.24.1
6bbd3e