Skip to content

Commit 99f0dd8

Browse files
[3.12] gh-111253: Fix error checking in _socket module init (GH-111254) (#111299)
gh-111253: Fix error checking in _socket module init (GH-111254) (cherry picked from commit 3052c09) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent a94bdc2 commit 99f0dd8

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
@@ -7703,10 +7703,10 @@ socket_exec(PyObject *m)
77037703

77047704
/* FreeBSD divert(4) */
77057705
#ifdef PF_DIVERT
7706-
PyModule_AddIntMacro(m, PF_DIVERT);
7706+
ADD_INT_MACRO(m, PF_DIVERT);
77077707
#endif
77087708
#ifdef AF_DIVERT
7709-
PyModule_AddIntMacro(m, AF_DIVERT);
7709+
ADD_INT_MACRO(m, AF_DIVERT);
77107710
#endif
77117711

77127712
#ifdef AF_PACKET

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy