Project

General

Profile

Bug #11862 ยป 0001-ext-socket-init.c-rsock_init_sock-reject-reserved-FD.patch

normalperson (Eric Wong), 12/22/2015 07:43 PM

View differences:

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");
}
-
    (1-1/1)