mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
gh-111253: Fix error checking in _socket module init (#111254)
This commit is contained in:
parent
86887a2084
commit
3052c098ca
@ -0,0 +1 @@
|
||||
Add error checking during :mod:`!_socket` module init.
|
@ -7723,10 +7723,10 @@ socket_exec(PyObject *m)
|
||||
|
||||
/* FreeBSD divert(4) */
|
||||
#ifdef PF_DIVERT
|
||||
PyModule_AddIntMacro(m, PF_DIVERT);
|
||||
ADD_INT_MACRO(m, PF_DIVERT);
|
||||
#endif
|
||||
#ifdef AF_DIVERT
|
||||
PyModule_AddIntMacro(m, AF_DIVERT);
|
||||
ADD_INT_MACRO(m, AF_DIVERT);
|
||||
#endif
|
||||
|
||||
#ifdef AF_PACKET
|
||||
|
Loading…
Reference in New Issue
Block a user