Skip to content

Commit

Permalink
pythongh-111253: Fix error checking in _socket module init (python#11…
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored and aisk committed Feb 11, 2024
1 parent a9985dd commit 2b69e40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -0,0 +1 @@
Add error checking during :mod:`!_socket` module init.
4 changes: 2 additions & 2 deletions Modules/socketmodule.c
Expand Up @@ -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
Expand Down

0 comments on commit 2b69e40

Please sign in to comment.