diff options
| author | YDBot <[email protected]> | 2026-06-26 11:22:40 +0000 |
|---|---|---|
| committer | YDBot <[email protected]> | 2026-06-26 11:22:40 +0000 |
| commit | e78a9f66eeb2ec3ccd8712bea29b3e7197519df0 (patch) | |
| tree | 64d07952278d008f8b3947089c252ec5a346cab4 /contrib/tools/python3/Modules/socketmodule.c | |
| parent | e5eebd69b54a5462d430c00b511a45f2f34b234a (diff) | |
| parent | ee2100f4ac5f28a7762a25c7c05750348a098df6 (diff) | |
Sync branches 260626-1120
Diffstat (limited to 'contrib/tools/python3/Modules/socketmodule.c')
| -rw-r--r-- | contrib/tools/python3/Modules/socketmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/tools/python3/Modules/socketmodule.c b/contrib/tools/python3/Modules/socketmodule.c index becdf9af718..9cdf207e7a3 100644 --- a/contrib/tools/python3/Modules/socketmodule.c +++ b/contrib/tools/python3/Modules/socketmodule.c @@ -8939,6 +8939,9 @@ socket_exec(PyObject *m) /* Initialize gethostbyname lock */ #if defined(USE_GETHOSTBYNAME_LOCK) netdb_lock = PyThread_allocate_lock(); + if (netdb_lock == NULL) { + goto error; + } #endif #ifdef MS_WINDOWS |
