]> granicus.if.org Git - python/commitdiff
Don't mask a no memory error with a less meaningful one as discussed on python-checkins
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 11 May 2006 07:51:59 +0000 (07:51 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 11 May 2006 07:51:59 +0000 (07:51 +0000)
Modules/_ssl.c

index afe699b51654eb922b0ebfe208fb6d56eb5dd029..f49391d7f00a1bcb4cc446d8c0a56b80bdd1f2cc 100644 (file)
@@ -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;