summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-ndisc.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-11 16:20:56 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-06-12 04:02:33 +0200
commit54a1a535bd60f13964bbddd8f381601e33e8e56f (patch)
tree4948383565ef19253d6e3ed1d4630c068c3205c5 /src/network/networkd-ndisc.c
parentman: fix reference to sd_bus_add_fallback_vtable (diff)
downloadsystemd-54a1a535bd60f13964bbddd8f381601e33e8e56f.tar.xz
systemd-54a1a535bd60f13964bbddd8f381601e33e8e56f.zip
network: ignore requested ipv6 addresses when ipv6 is disabled by sysctl
Diffstat (limited to '')
-rw-r--r--src/network/networkd-ndisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
index 3016f3448b..0600edac61 100644
--- a/src/network/networkd-ndisc.c
+++ b/src/network/networkd-ndisc.c
@@ -209,8 +209,8 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r
link_enter_failed(link);
return r;
}
-
- link->ndisc_messages++;
+ if (r > 0)
+ link->ndisc_messages++;
return 0;
}