gh-128452: fix warning in socketmodule.c (#129478)

This commit is contained in:
Kumar Aditya 2025-01-31 13:41:11 +05:30 committed by GitHub
parent 10ee2d9d3b
commit c07ac3c86a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2952,6 +2952,8 @@ sock_accept(PyObject *self, PyObject *Py_UNUSED(ignored))
ctx.addrlen = &addrlen;
ctx.addrbuf = &addrbuf;
ctx.result = INVALID_SOCKET;
if (sock_call(s, 0, sock_accept_impl, &ctx) < 0)
return NULL;
newfd = ctx.result;