diff options
author | libuv upstream <libuv@googlegroups.com> | 2022-07-12 16:16:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-27 13:49:38 (GMT) |
commit | a23da1559648995998343f3ae63076db736b55a5 (patch) | |
tree | f16d7ac9fb0a52f8d57b3828bc5179aa75b7cb53 /src/uv-common.c | |
parent | 09ec116d91c571dff0f108c23eabbcccdca767fa (diff) | |
download | CMake-a23da1559648995998343f3ae63076db736b55a5.zip CMake-a23da1559648995998343f3ae63076db736b55a5.tar.gz CMake-a23da1559648995998343f3ae63076db736b55a5.tar.bz2 |
libuv 2022-07-12 (0c1fa696)
Code extracted from:
https://github.com/libuv/libuv.git
at commit 0c1fa696aa502eb749c2c4735005f41ba00a27b8 (v1.44.2).
Diffstat (limited to 'src/uv-common.c')
-rw-r--r-- | src/uv-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uv-common.c b/src/uv-common.c index f43dd3d..efc9eb5 100644 --- a/src/uv-common.c +++ b/src/uv-common.c @@ -295,7 +295,9 @@ int uv_tcp_bind(uv_tcp_t* handle, if (handle->type != UV_TCP) return UV_EINVAL; - + if (uv__is_closing(handle)) { + return UV_EINVAL; + } if (addr->sa_family == AF_INET) addrlen = sizeof(struct sockaddr_in); else if (addr->sa_family == AF_INET6) |