From 38e3b7d2d36a2029ad86c9c23d031e5350e80d35 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 11 May 2006 07:51:59 +0000 Subject: Don't mask a no memory error with a less meaningful one as discussed on python-checkins --- Modules/_ssl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/_ssl.c b/Modules/_ssl.c index afe699b..f49391d 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -183,10 +183,8 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file) 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; -- cgit v0.12