nullfd is passed to a parameter that cannot be negative