summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 774b29f..93620c7 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1267,7 +1267,7 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td)
#ifdef MAC
case SIOCGIFMAC:
- error = mac_ioctl_ifnet_get(td->td_proc->p_ucred, ifr, ifp);
+ error = mac_ioctl_ifnet_get(td->td_ucred, ifr, ifp);
break;
#endif
@@ -1326,7 +1326,7 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td)
#ifdef MAC
case SIOCSIFMAC:
- error = mac_ioctl_ifnet_set(td->td_proc->p_ucred, ifr, ifp);
+ error = mac_ioctl_ifnet_set(td->td_ucred, ifr, ifp);
break;
#endif
OpenPOWER on IntegriCloud