File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,8 @@ typedef struct {
339339 PyObject * exc ;
340340} PySSLSocket ;
341341
342+ #define PySSLSocket_CAST (op ) ((PySSLSocket *)(op))
343+
342344typedef struct {
343345 PyObject_HEAD
344346 BIO * bio ;
@@ -2319,23 +2321,26 @@ _ssl__SSLSocket_owner_set_impl(PySSLSocket *self, PyObject *value)
23192321}
23202322
23212323static int
2322- PySSL_traverse (PySSLSocket * self , visitproc visit , void * arg )
2324+ PySSL_traverse (PyObject * op , visitproc visit , void * arg )
23232325{
2326+ PySSLSocket * self = PySSLSocket_CAST (op );
23242327 Py_VISIT (self -> exc );
23252328 Py_VISIT (Py_TYPE (self ));
23262329 return 0 ;
23272330}
23282331
23292332static int
2330- PySSL_clear (PySSLSocket * self )
2333+ PySSL_clear (PyObject * op )
23312334{
2335+ PySSLSocket * self = PySSLSocket_CAST (op );
23322336 Py_CLEAR (self -> exc );
23332337 return 0 ;
23342338}
23352339
23362340static void
2337- PySSL_dealloc (PySSLSocket * self )
2341+ PySSL_dealloc (PyObject * op )
23382342{
2343+ PySSLSocket * self = PySSLSocket_CAST (op );
23392344 PyTypeObject * tp = Py_TYPE (self );
23402345 PyObject_GC_UnTrack (self );
23412346 if (self -> ssl ) {
You can’t perform that action at this time.
0 commit comments