| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ce3ef69 commit e2be1e1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4395,12 +4395,13 @@ _ssl__SSLContext_set_ecdh_curve(PySSLContext *self, PyObject *name) | |||
| 4395 | 4395 | EC_KEY_free(key); | |
| 4396 | 4396 | #else | |
| 4397 | 4397 | int res = SSL_CTX_set1_groups_list(self->ctx, PyBytes_AS_STRING(name_bytes)); | |
| 4398 | - Py_DECREF(name_bytes); | ||
| 4399 | 4398 | if (!res) { | |
| 4400 | 4399 | PyErr_Format(PyExc_ValueError,"unknown elliptic curves %R", name_bytes); | |
| 4400 | + Py_DECREF(name_bytes); | ||
| 4401 | 4401 | _setSSLError(get_state_ctx(self), NULL, 0, __FILE__, __LINE__); | |
| 4402 | 4402 | return NULL; | |
| 4403 | 4403 | } | |
| 4404 | + Py_DECREF(name_bytes); | ||
| 4404 | 4405 | #endif | |
| 4405 | 4406 | Py_RETURN_NONE; | |
| 4406 | 4407 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments