diff options
author | brueffer <brueffer@FreeBSD.org> | 2014-02-10 14:36:51 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2014-02-10 14:36:51 +0000 |
commit | 576b9091dde7bd351640bfde4dd47129aa04def3 (patch) | |
tree | fdf11ee68d1e9d255e6578247c3cfb5967ed22df | |
parent | 0525ade939e68f37c36310c8fe2171068ff3bd3f (diff) | |
download | FreeBSD-src-576b9091dde7bd351640bfde4dd47129aa04def3.zip FreeBSD-src-576b9091dde7bd351640bfde4dd47129aa04def3.tar.gz |
For IPv6, return the same error code as IPv4 when mrouter is not initialized.
PR: 178472
Submitted by: Sven-Thorsten Dietrich <sven at vyatta.com>
Reviewed by: bms
-rw-r--r-- | sys/netinet6/ip6_mroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 76412b9..8fdfc1f 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -361,7 +361,7 @@ X_ip6_mrouter_set(struct socket *so, struct sockopt *sopt) mifi_t mifi; if (so != V_ip6_mrouter && sopt->sopt_name != MRT6_INIT) - return (EACCES); + return (EPERM); switch (sopt->sopt_name) { case MRT6_INIT: |