[Python-bugs-list] [ python-Bugs-461350 ] SSL support crashes python (original) (raw)
noreply@sourceforge.net noreply@sourceforge.net
Wed, 10 Oct 2001 12:55:57 -0700
- Previous message: [Python-bugs-list] [ python-Bugs-228685 ] popen on Win9x isnt smart enough about finding w9xpopen.exe
- Next message: [Python-bugs-list] [ python-Bugs-461358 ] SSL constructor/destructor bugs
- 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: Closed Resolution: Fixed 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);Comment By: Jeremy Hylton (jhylton) Date: 2001-10-10 12:55
Message: Logged In: YES user_id=31392
Fixed in rev 1.171
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-228685 ] popen on Win9x isnt smart enough about finding w9xpopen.exe
- Next message: [Python-bugs-list] [ python-Bugs-461358 ] SSL constructor/destructor bugs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]