diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-25 02:54:53 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-25 02:54:53 -0800 |
commit | 68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e (patch) | |
tree | af53a1bb88d246bef2def16901fb3dfdf7e8573f /src/config.c | |
parent | 2bd9b034afbe49d154151c99e822de2bea382116 (diff) | |
download | connman-68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e.tar.gz connman-68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e.tar.bz2 connman-68e51a3dcedbf3ce1aeb1efb1a8b595432bc402e.zip |
Add extra NULL pointer check for service configuration
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 3 |
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); |