From 975bcbe1183a3b566742a378c7de509f300df3c9 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 9 Dec 2010 13:11:51 +0200 Subject: [PATCH] ipconfig: Return a valid IPv6 configuration --- src/ipconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index a2a7bf2..9ba8486 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1202,7 +1202,7 @@ void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig, struct connman_ipconfig *connman_ipconfig_get_ipv6config( struct connman_ipconfig *ipconfig) { - if (ipconfig == NULL) + if (ipconfig == NULL || ipconfig->type != CONNMAN_IPCONFIG_TYPE_IPV6) return NULL; return ipconfig; -- 2.7.4