summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@nokia.com>2010-12-09 13:11:52 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-14 18:59:40 +0100
commit61207f350f0eb61ea436b0bdc0e4148631490ece (patch)
tree7aa8d4cce1a2211a485189f5db80ef5ee0401406 /src
parent975bcbe1183a3b566742a378c7de509f300df3c9 (diff)
downloadconnman-61207f350f0eb61ea436b0bdc0e4148631490ece.tar.gz
connman-61207f350f0eb61ea436b0bdc0e4148631490ece.tar.bz2
connman-61207f350f0eb61ea436b0bdc0e4148631490ece.zip
ipconfig: Set the IPv6 gateway address only from an IPv6 config
Diffstat (limited to 'src')
-rw-r--r--src/ipconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 9ba84864..cf164c09 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;
}
/*