diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-11 07:51:59 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-11 07:51:59 (GMT) |
commit | 38e3b7d2d36a2029ad86c9c23d031e5350e80d35 (patch) | |
tree | 1dcdad0ea430c08487255f0be5b69cf178a64b1e /Modules | |
parent | 09d1236b89390321a447717d32442b65c8f81105 (diff) | |
download | cpython-38e3b7d2d36a2029ad86c9c23d031e5350e80d35.zip cpython-38e3b7d2d36a2029ad86c9c23d031e5350e80d35.tar.gz cpython-38e3b7d2d36a2029ad86c9c23d031e5350e80d35.tar.bz2 |
Don't mask a no memory error with a less meaningful one as discussed on python-checkins
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ssl.c | 4 |
1 files changed, 1 insertions, 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; |