--- src/service.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/service.c b/src/service.c index 34dbc79..dd75eba 100644 --- a/src/service.c +++ b/src/service.c @@ -4609,6 +4609,9 @@ struct connman_service *__connman_service_lookup_from_network(struct connman_net DBG("network %p", network); + if (network == NULL) + return NULL; + ident = __connman_network_get_ident(network); if (ident == NULL) return NULL; @@ -4802,6 +4805,9 @@ struct connman_service * __connman_service_create_from_network(struct connman_ne DBG("network %p", network); + if (network == NULL) + return NULL; + ident = __connman_network_get_ident(network); if (ident == NULL) return NULL; -- 1.7.1 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman