[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.114 and 1.115

version 1.114, 2005/12/11 12:24:30 version 1.115, 2005/12/27 00:00:29
Line 453  socreate(int dom, struct socket **aso, i
Line 453  socreate(int dom, struct socket **aso, i
 {  {
         const struct protosw    *prp;          const struct protosw    *prp;
         struct socket   *so;          struct socket   *so;
         struct proc     *p;          uid_t           uid;
         int             error, s;          int             error, s;
   
         p = l->l_proc;  
         if (proto)          if (proto)
                 prp = pffindproto(dom, proto, type);                  prp = pffindproto(dom, proto, type);
         else          else
Line 479  socreate(int dom, struct socket **aso, i
Line 478  socreate(int dom, struct socket **aso, i
         so->so_snd.sb_mowner = &prp->pr_domain->dom_mowner;          so->so_snd.sb_mowner = &prp->pr_domain->dom_mowner;
         so->so_mowner = &prp->pr_domain->dom_mowner;          so->so_mowner = &prp->pr_domain->dom_mowner;
 #endif  #endif
         if (p != 0)          if (l != NULL) {
                 so->so_uidinfo = uid_find(p->p_ucred->cr_uid);                  uid = l->l_proc->p_ucred->cr_uid;
         else          } else {
                 so->so_uidinfo = uid_find(0);                  uid = 0;
           }
           so->so_uidinfo = uid_find(uid);
         error = (*prp->pr_usrreq)(so, PRU_ATTACH, (struct mbuf *)0,          error = (*prp->pr_usrreq)(so, PRU_ATTACH, (struct mbuf *)0,
             (struct mbuf *)(long)proto, (struct mbuf *)0, l);              (struct mbuf *)(long)proto, (struct mbuf *)0, l);
         if (error) {          if (error) {

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115

CVSweb <webmaster@jp.NetBSD.org>