projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd9b03
)
Add extra NULL pointer check for service configuration
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 25 Dec 2009 10:54:53 +0000
(
02:54
-0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 25 Dec 2009 10:54:53 +0000
(
02:54
-0800)
src/config.c
patch
|
blob
|
history
diff --git
a/src/config.c
b/src/config.c
index
af97831
..
d6b275d
100644
(file)
--- 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);