Skip to content

Commit

Permalink
pythongh-111253: Fix socketmodule.c not checking for errors when init…
Browse files Browse the repository at this point in the history
…ializing
  • Loading branch information
sobolevn committed Oct 24, 2023
1 parent 81eba76 commit 63bc51d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -0,0 +1 @@
Fix ``_socket`` module not checking for errors when initializing.
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 63bc51d

Please sign in to comment.