From 804a3b6005c76f6ec5feea2db8bb2dd1d3143cc7 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 22 Dec 2010 16:37:16 +0100 Subject: ipconfig: Check for ipconfig pointer before getting ops_data --- src/ipconfig.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/ipconfig.c b/src/ipconfig.c index 0518e10f..57e3218f 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -953,6 +953,9 @@ void connman_ipconfig_unref(struct connman_ipconfig *ipconfig) */ void *connman_ipconfig_get_data(struct connman_ipconfig *ipconfig) { + if (ipconfig == NULL) + return NULL; + return ipconfig->ops_data; } -- cgit v1.2.3