posix_sockets: fix assertion on close
This commit is contained in:
parent
1b2b5d9df9
commit
465f8e42a1
@ -234,7 +234,7 @@ static int socket_close(int socket)
|
||||
socket_t *s;
|
||||
int res = 0;
|
||||
|
||||
assert((unsigned)(socket - 1) > (_ACTUAL_SOCKET_POOL_SIZE - 1));
|
||||
assert(((unsigned)socket) < _ACTUAL_SOCKET_POOL_SIZE);
|
||||
s = &_socket_pool[socket];
|
||||
assert((s->domain == AF_INET) || (s->domain == AF_INET6));
|
||||
mutex_lock(&_socket_pool_mutex);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user