[Python-checkins] cpython: Fix returning uninitialized variable (issue #8109).

antoine.pitrou python-checkins at python.org
Sun Jan 6 15:27:57 CET 2013


http://hg.python.org/cpython/rev/52b4d9bfc9ea
changeset:   81299:52b4d9bfc9ea
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Jan 06 15:25:36 2013 +0100
summary:
  Fix returning uninitialized variable (issue #8109).
Found by Christian with Coverity.

files:
  Modules/_ssl.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_ssl.c b/Modules/_ssl.c
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2400,7 +2400,7 @@
         /* remove race condition in this the call back while if removing the
          * callback is in progress */
         PyGILState_Release(gstate);
-        return ret;
+        return SSL_TLSEXT_ERR_OK;
     }
 
     ssl = SSL_get_app_data(s);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list