[PATCH] ipconfig: Do not check device if interface name is not set

Jukka Rissanen jukka.rissanen at linux.intel.com
Thu Nov 22 05:02:55 PST 2012


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
---
 src/ipconfig.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ipconfig.c b/src/ipconfig.c
index 3cb0d9b..7fba53b 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);
-- 
1.7.11.4




More information about the connman mailing list