[BACK]Return to uipc_socket.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/uipc_socket.c between version 1.123 and 1.124

version 1.123, 2006/10/02 00:02:04 version 1.124, 2006/10/02 09:22:34
Line 722  sodisconnect(struct socket *so)
Line 722  sodisconnect(struct socket *so)
         int     s, error;          int     s, error;
   
         s = splsoftnet();          s = splsoftnet();
           if (so->so_cred != NULL)
                   kauth_cred_free(so->so_cred);
         if ((so->so_state & SS_ISCONNECTED) == 0) {          if ((so->so_state & SS_ISCONNECTED) == 0) {
                 error = ENOTCONN;                  error = ENOTCONN;
                 goto bad;                  goto bad;
Line 730  sodisconnect(struct socket *so)
Line 732  sodisconnect(struct socket *so)
                 error = EALREADY;                  error = EALREADY;
                 goto bad;                  goto bad;
         }          }
         if (so->so_cred != NULL)  
                 kauth_cred_free(so->so_cred);  
         error = (*so->so_proto->pr_usrreq)(so, PRU_DISCONNECT,          error = (*so->so_proto->pr_usrreq)(so, PRU_DISCONNECT,
             (struct mbuf *)0, (struct mbuf *)0, (struct mbuf *)0,              (struct mbuf *)0, (struct mbuf *)0, (struct mbuf *)0,
             (struct lwp *)0);              (struct lwp *)0);

Legend:
Removed from v.1.123  
changed lines
  Added in v.1.124

CVSweb <webmaster@jp.NetBSD.org>