port: epoll_ctl() to report EBADF when both op and sock are invalid

This commit is contained in:
Bert Belder 2017-12-07 19:07:01 +01:00
parent b5864f3a0f
commit 097e4fef9a

View File

@ -320,7 +320,7 @@ static int _ep_port_ctl_op(ep_port_t* port_info,
case EPOLL_CTL_DEL:
return _ep_port_ctl_del(port_info, sock);
default:
return_error(-1, ERROR_INVALID_PARAMETER);
return_handle_error(-1, sock, ERROR_INVALID_PARAMETER);
}
}