Bug #11862 ยป 0001-ext-socket-init.c-rsock_init_sock-reject-reserved-FD.patch
ext/socket/init.c | ||
---|---|---|
{
|
||
rb_io_t *fp;
|
||
if (!is_socket(fd)) {
|
||
if (!is_socket(fd) || rb_reserved_fd_p(fd)) {
|
||
errno = EBADF;
|
||
rb_sys_fail("not a socket file descriptor");
|
||
}
|
||
-
|