proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / netproto / atalk / at_control.c
index 9f54cb7..2e1389b 100644 (file)
@@ -98,9 +98,8 @@ at_control(struct socket *so, u_long cmd, caddr_t data,
        /* 
         * If we are not superuser, then we don't get to do these ops.
         */
-       if ( suser(p) ) {
-           return( EPERM );
-       }
+       if (suser(td))
+           return(EPERM);
 
        sat = satosat( &ifr->ifr_addr );
        nr = (struct netrange *)sat->sat_zero;