From 61207f350f0eb61ea436b0bdc0e4148631490ece Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 9 Dec 2010 13:11:52 +0200 Subject: [PATCH] ipconfig: Set the IPv6 gateway address only from an IPv6 config --- src/ipconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index 9ba8486..cf164c0 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1254,7 +1254,8 @@ void __connman_ipconfig_set_element_ipv6_gateway( struct connman_ipconfig *ipconfig, struct connman_element *element) { - element->ipv6.gateway = ipconfig->address->gateway; + if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6) + element->ipv6.gateway = ipconfig->address->gateway; } /* -- 2.7.4