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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 09 Oct 2001 19:42:39 -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: 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.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);



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=461350&group_id=5470