projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1f1509
)
P2P: Fix code order to avoid potential NULL pointer dereference
author
Jouni Malinen
<jouni.malinen@atheros.com>
Thu, 29 Jul 2010 23:20:02 +0000
(16:20 -0700)
committer
Jouni Malinen
<j@w1.fi>
Thu, 9 Sep 2010 14:17:21 +0000
(07:17 -0700)
src/p2p/p2p_group.c
patch
|
blob
|
history
diff --git
a/src/p2p/p2p_group.c
b/src/p2p/p2p_group.c
index
17837cb
..
8e1b5ae
100644
(file)
--- a/
src/p2p/p2p_group.c
+++ b/
src/p2p/p2p_group.c
@@
-100,11
+100,13
@@
static void p2p_group_free_members(struct p2p_group *group)
void p2p_group_deinit(struct p2p_group *group)
{
size_t g;
- struct p2p_data *p2p
= group->p2p
;
+ struct p2p_data *p2p;
if (group == NULL)
return;
+ p2p = group->p2p;
+
for (g = 0; g < p2p->num_groups; g++) {
if (p2p->groups[g] == group) {
while (g + 1 < p2p->num_groups) {