1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #6761 from miri64/posix_socket/fix/close_assert

posix_sockets: fix assertion on close
This commit is contained in:
Sebastian Meiling 2017-03-20 11:54:48 +01:00 committed by GitHub
commit c72aec26a5

View File

@ -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);