Hi Thomas,

>       s = splnet();
> +     if (so->so_state & (SS_ISCONNECTED | SS_ISCONNECTING)) {
> +             splx(s);
> +             return (EINVAL);
> +     }
>       error = (*so->so_proto->pr_usrreqs->pru_listen)(so, td);
>       if (error) {
>               splx(s);
>

Can you commit this ? The fix looks appropriate, but the manpage should
also be changed to reflect the change.

ERRORS
     Listen() will fail if:

     [EBADF]            The argument s is not a valid descriptor.
     [ENOTSOCK]         The argument s is not a socket.
     [EOPNOTSUPP]       The socket is not of a type that
                        supports the operation listen().
     [EINVAL]           Listen() has been already called on the socket.

Any objections from others ?

Martin

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to