[Python-bugs-list] [ python-Bugs-461350 ] SSL support crashes python

noreply@sourceforge.net noreply@sourceforge.net
Wed, 10 Oct 2001 12:55:57 -0700


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.AF_INET, 
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