Browse Source

Merge pull request #7055 from samkumar/feature-fix-fd_new

posix_sockets: Fix use of fd_new
master
Martine Lenders 6 years ago committed by GitHub
parent
commit
b64beb0888
  1. 3
      sys/posix/sockets/posix_sockets.c

3
sys/posix/sockets/posix_sockets.c

@ -442,8 +442,7 @@ int accept(int socket, struct sockaddr *restrict address,
sa_len);
}
int fd = fd_new(new_s - _socket_pool, socket_read, socket_write,
socket_close);
int fd = vfs_bind(VFS_ANY_FD, 0, &socket_ops, new_s);
if (fd < 0) {
errno = ENFILE;
res = -1;

Loading…
Cancel
Save