summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-01-06 14:25:36 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-01-06 14:25:36 (GMT)
commit5dd12a5978389ec3dfa7063bbe9a9763b1294027 (patch)
tree6596db37a94afbd2b21c843df5fe0d0ac9d006ec /Modules/_ssl.c
parent58ddc9d743d09ee93d5cf46a4de62eab30dad79d (diff)
downloadcpython-5dd12a5978389ec3dfa7063bbe9a9763b1294027.zip
cpython-5dd12a5978389ec3dfa7063bbe9a9763b1294027.tar.gz
cpython-5dd12a5978389ec3dfa7063bbe9a9763b1294027.tar.bz2
Fix returning uninitialized variable (issue #8109).
Found by Christian with Coverity.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 16fa076..0de541c 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2400,7 +2400,7 @@ _servername_callback(SSL *s, int *al, void *args)
/* 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);