Skip to content

Commit 46bde1e

Browse files
committed
pythongh-126455: Disallow _ssl.SSLSocket instantiation
1 parent 6431f37 commit 46bde1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,7 @@ static PyType_Spec PySSLSocket_spec = {
29792979
.name = "_ssl._SSLSocket",
29802980
.basicsize = sizeof(PySSLSocket),
29812981
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE |
2982-
Py_TPFLAGS_HAVE_GC),
2982+
Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_DISALLOW_INSTANTIATION),
29832983
.slots = PySSLSocket_slots,
29842984
};
29852985

0 commit comments

Comments
 (0)