diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2011-08-24 17:02:07 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-09-12 11:40:47 +0200 |
commit | ddc3e31dccabe5055225a73037ed2949a950ccac (patch) | |
tree | de01b6bb4c75dd0d6eb608b72d0345c2028c7e36 /src | |
parent | 19372133d1c17d38afbbe37b71a528bcb16d4bf1 (diff) | |
download | connman-ddc3e31dccabe5055225a73037ed2949a950ccac.tar.gz connman-ddc3e31dccabe5055225a73037ed2949a950ccac.tar.bz2 connman-ddc3e31dccabe5055225a73037ed2949a950ccac.zip |
service: Add NULL check
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index d768bdd3..f0843625 100644 --- a/src/service.c +++ b/src/service.c @@ -5189,6 +5189,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; @@ -5382,6 +5385,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; |