]> granicus.if.org Git - python/commitdiff
Fix returning uninitialized variable (issue #8109).
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 6 Jan 2013 14:25:36 +0000 (15:25 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 6 Jan 2013 14:25:36 +0000 (15:25 +0100)
Found by Christian with Coverity.

Modules/_ssl.c

index 16fa0763bf6c343e03d4e47bc4aa3589e5292ab6..0de541ce7a05ccc4138e5e2428d9d4933e5be363 100644 (file)
@@ -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);