diff options
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r-- | sys/net/if_gre.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 9e76a114461..103b89e5262 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.27 2003/07/09 22:03:15 itojun Exp $ */ +/* $OpenBSD: if_gre.c,v 1.28 2003/08/15 20:32:19 tedu Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -435,7 +435,7 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) break; case GRESPROTO: /* Check for superuser */ - if ((error = suser(prc->p_ucred, &prc->p_acflag)) != 0) + if ((error = suser(prc, 0)) != 0) break; sc->g_proto = ifr->ifr_flags; @@ -457,7 +457,7 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case GRESADDRS: case GRESADDRD: /* Check for superuser */ - if ((error = suser(prc->p_ucred, &prc->p_acflag)) != 0) + if ((error = suser(prc, 0)) != 0) break; /* @@ -506,7 +506,7 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) ifr->ifr_addr = *sa; break; case SIOCSLIFPHYADDR: - if ((error = suser(prc->p_ucred, &prc->p_acflag)) != 0) + if ((error = suser(prc, 0)) != 0) break; if (lifr->addr.ss_family != AF_INET || lifr->dstaddr.ss_family != AF_INET) { @@ -523,7 +523,7 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) (satosin((struct sockadrr *)&lifr->dstaddr))->sin_addr; goto recompute; case SIOCDIFPHYADDR: - if ((error = suser(prc->p_ucred, &prc->p_acflag)) != 0) + if ((error = suser(prc, 0)) != 0) break; sc->g_src.s_addr = INADDR_ANY; sc->g_dst.s_addr = INADDR_ANY; |