[Python-bugs-list] [ python-Bugs-461350 ] SSL support crashes python (original) (raw)
noreply@sourceforge.net noreply@sourceforge.net
Tue, 09 Oct 2001 19:42:39 -0700
- Previous message: [Python-bugs-list] [ python-Bugs-461353 ] SSL write doesn't check return codes
- Next message: [Python-bugs-list] [ python-Bugs-468948 ] urllib2, basic authentication, & 302
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bugs item #461350, was opened at 2001-09-13 13:55 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461350&group_id=5470
Category: Python Library Group: Python 2.1.1 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody)
Assigned to: Jeremy Hylton (jhylton) Summary: SSL support crashes python
Initial Comment: with a debug version of python on Windows, try:
import socket sk = socket.socket(socket.AFINET, socket.SOCK_STREAM) sl = socket.ssl(sk.sock)
This is due to PyObject_Del() calls in socketmodule.c:
if ((SSL_connect(self->ssl)) == -1) {
/* Actually negotiate SSL connection */
PyErr_SetObject(SSLErrorObject,
PyString_FromString("SSL_connect error")); PyObject_Del(self); return NULL; }
these need to be replaced by:
Py_DECREF(self);You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461350&group_id=5470
- Previous message: [Python-bugs-list] [ python-Bugs-461353 ] SSL write doesn't check return codes
- Next message: [Python-bugs-list] [ python-Bugs-468948 ] urllib2, basic authentication, & 302
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]