Skip to content

Commit

Permalink
pythongh-111253: Fix error checking in _socket module init (pythonGH-…
Browse files Browse the repository at this point in the history
…111254)

(cherry picked from commit 3052c09)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
sobolevn authored and miss-islington committed Oct 25, 2023
1 parent 6f130f2 commit 92cc30d
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 @@ -7703,10 +7703,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 92cc30d

Please sign in to comment.