aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-12-11 19:32:16 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-12-11 19:32:16 +0000
commitcc426dd31990b8b50b210efc450e404596548ca1 (patch)
tree4c797c5d8886d8d05bb5346b747005b539105825 /sys/netipsec
parent959530cc41aea5f878c2c2cea5b545d295108bab (diff)
downloadsrc-cc426dd31990b8b50b210efc450e404596548ca1.tar.gz
src-cc426dd31990b8b50b210efc450e404596548ca1.zip
Remove unused argument to priv_check_cred.
Patch mostly generated with cocinnelle: @@ expression E1,E2; @@ - priv_check_cred(E1,E2,0) + priv_check_cred(E1,E2) Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=341827
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/ipsec_pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_pcb.c b/sys/netipsec/ipsec_pcb.c
index 616cbb118250..93f60b10e788 100644
--- a/sys/netipsec/ipsec_pcb.c
+++ b/sys/netipsec/ipsec_pcb.c
@@ -296,7 +296,7 @@ ipsec_set_pcbpolicy(struct inpcb *inp, struct ucred *cred,
case IPSEC_POLICY_IPSEC:
case IPSEC_POLICY_BYPASS:
if (cred != NULL &&
- priv_check_cred(cred, PRIV_NETINET_IPSEC, 0) != 0)
+ priv_check_cred(cred, PRIV_NETINET_IPSEC) != 0)
return (EACCES);
/* Allocate new SP entry. */
newsp = key_msg2sp(xpl, len, &error);