projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e15400
)
Fix potential invalid memory access of group name
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 14 Jul 2009 07:44:24 +0000
(09:44 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 14 Jul 2009 07:44:24 +0000
(09:44 +0200)
plugins/supplicant.c
patch
|
blob
|
history
diff --git
a/plugins/supplicant.c
b/plugins/supplicant.c
index
d9e3eb1
..
8f7b759
100644
(file)
--- a/
plugins/supplicant.c
+++ b/
plugins/supplicant.c
@@
-1555,7
+1555,7
@@
static void state_change(struct supplicant_task *task, DBusMessage *msg)
case WPA_COMPLETED:
if (connman_network_get_group(task->network) == NULL) {
const char *name, *mode, *security;
- char *
group, *
bssid;
+ char *bssid;
/*
* This is a hidden network, we need to set its
@@
-1571,13
+1571,15
@@
static void state_change(struct supplicant_task *task, DBusMessage *msg)
"WiFi.Security");
if (bssid && name && mode && security) {
+ char *group;
+
group = build_group(bssid, name, NULL, 0,
mode, security);
connman_network_set_group(task->network, group);
+ g_free(group);
}
g_free(bssid);
- g_free(group);
}
/* carrier on */