diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-22 15:02:55 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-23 13:07:11 +0200 |
commit | 3a386560ee6233c6bed56d610d262125735e6b5d (patch) | |
tree | 726a4530287e8472d84e4f9f7255e0a2da8d25b0 /src/ipconfig.c | |
parent | acedf9d49b9a326771aeec755179e3ede3872cdd (diff) | |
download | connman-3a386560ee6233c6bed56d610d262125735e6b5d.tar.gz connman-3a386560ee6233c6bed56d610d262125735e6b5d.tar.bz2 connman-3a386560ee6233c6bed56d610d262125735e6b5d.zip |
ipconfig: Do not check device if interface name is not set
If the interface name is not set, then it is no use
checking if the interface would be ignored.
The interface name is not set if the interface is being
taken down and we get NEWLINK message with NULL interface.
Fixes BMC#25865
Diffstat (limited to 'src/ipconfig.c')
-rw-r--r-- | src/ipconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c index 3cb0d9bb..7fba53bf 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -396,6 +396,9 @@ static void __connman_ipconfig_lower_up(struct connman_ipdevice *ipdevice) ipdevice->config_ipv6->enabled == TRUE) return; + if (ipdevice->ifname == NULL) + return; + if (__connman_device_isfiltered(ipdevice->ifname) == FALSE) { ipdevice->ipv6_enabled = get_ipv6_state(ipdevice->ifname); set_ipv6_state(ipdevice->ifname, FALSE); |