[Python-checkins] r45963 - python/trunk/Modules/_ssl.c

neal.norwitz python-checkins at python.org
Thu May 11 09:51:59 CEST 2006


Author: neal.norwitz
Date: Thu May 11 09:51:59 2006
New Revision: 45963

Modified:
   python/trunk/Modules/_ssl.c
Log:
Don't mask a no memory error with a less meaningful one as discussed on python-checkins

Modified: python/trunk/Modules/_ssl.c
==============================================================================
--- python/trunk/Modules/_ssl.c	(original)
+++ python/trunk/Modules/_ssl.c	Thu May 11 09:51:59 2006
@@ -183,10 +183,8 @@
 	int sockstate;
 
 	self = PyObject_New(PySSLObject, &PySSL_Type); /* Create new object */
-	if (self == NULL) {
-		PyErr_SetString(PySSLErrorObject, "newPySSLObject error");
+	if (self == NULL)
 		return NULL;
-	}
 	memset(self->server, '\0', sizeof(char) * X509_NAME_MAXLEN);
 	memset(self->issuer, '\0', sizeof(char) * X509_NAME_MAXLEN);
 	self->server_cert = NULL;


More information about the Python-checkins mailing list