--- src/service.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/service.c b/src/service.c index 7486d5c..2c31b48 100644 --- a/src/service.c +++ b/src/service.c @@ -4127,6 +4127,9 @@ enum connman_service_state __connman_service_ipconfig_get_state( struct connman_service *service, enum connman_ipconfig_type type) { + if (service == NULL) + return CONNMAN_SERVICE_STATE_UNKNOWN; + if (type == CONNMAN_IPCONFIG_TYPE_IPV4) return service->state_ipv4; -- 1.7.1 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman