changeset 4dec26e5cd71 in /home/hg/repos/python-nbxmpp

details:http://hg.gajim.org/python-nbxmpp?cmd=changeset;node=4dec26e5cd71
description: Fix SSLError not shown in some cases - Fixes #37

diffstat:

 nbxmpp/tls_nb.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 9a098ef74494 -r 4dec26e5cd71 nbxmpp/tls_nb.py
--- a/nbxmpp/tls_nb.py  Sun Sep 04 13:54:09 2016 +0200
+++ b/nbxmpp/tls_nb.py  Thu Jul 28 07:44:57 2016 +0200
@@ -493,10 +493,10 @@
     def _ssl_verify_callback(self, sslconn, cert, errnum, depth, ok):
         # Exceptions can't propagate up through this callback, so print them 
here.
         try:
+            if not ok:
+                self._owner.ssl_errnum = errnum
             if depth == 0:
                 self._owner.ssl_certificate = cert
-                if not ok:
-                    self._owner.ssl_errnum = errnum
             return True
         except:
             log.error("Exception caught in _ssl_info_callback:", exc_info=True)
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to