Skip to content

Commit e146dd9

Browse files
sobolevnGlyphack
authored andcommitted
pythongh-111253: Fix error checking in _socket module init (python#111254)
1 parent 3efd9d6 commit e146dd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add error checking during :mod:`!_socket` module init.

Modules/socketmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7723,10 +7723,10 @@ socket_exec(PyObject *m)
77237723

77247724
/* FreeBSD divert(4) */
77257725
#ifdef PF_DIVERT
7726-
PyModule_AddIntMacro(m, PF_DIVERT);
7726+
ADD_INT_MACRO(m, PF_DIVERT);
77277727
#endif
77287728
#ifdef AF_DIVERT
7729-
PyModule_AddIntMacro(m, AF_DIVERT);
7729+
ADD_INT_MACRO(m, AF_DIVERT);
77307730
#endif
77317731

77327732
#ifdef AF_PACKET

0 commit comments

Comments
 (0)