summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-12-25 02:54:53 -0800
committerMarcel Holtmann <marcel@holtmann.org>2009-12-25 02:54:53 -0800
commit68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e (patch)
treeaf53a1bb88d246bef2def16901fb3dfdf7e8573f /src
parent2bd9b034afbe49d154151c99e822de2bea382116 (diff)
downloadconnman-68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e.tar.gz
connman-68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e.tar.bz2
connman-68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e.zip
Add extra NULL pointer check for service configuration
Diffstat (limited to 'src')
-rw-r--r--src/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index af978316..d6b275da 100644
--- a/src/config.c
+++ b/src/config.c
@@ -151,6 +151,9 @@ static int load_service(GKeyFile *keyfile, struct connman_config *config)
static void free_service(struct connman_config_service *service)
{
+ if (service == NULL)
+ return;
+
g_free(service->type);
g_free(service->ssid);
g_free(service->eap);