diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 956f9b62d85..24c381aa873 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -719,7 +719,8 @@ pppsioctl(ifp, cmd, data) * XXXRW: Isn't this suser() check redundant to the one at the ifnet * layer? */ - if ((error = suser(td)) != 0) + error = priv_check(td, PRIV_NET_SETIFMTU); + if (error) break; if (ifr->ifr_mtu > PPP_MAXMTU) error = EINVAL;