summaryrefslogtreecommitdiff
blob: 2d3ba1a281884f561bfc430cd8b31c2a4615913f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- ../src/rsn_supp/preauth.c	2010-01-16 12:04:38.000000000 -0500
+++ ../src/rsn_supp/preauth.c	2010-02-01 10:08:48.862052876 -0500
@@ -49,8 +49,10 @@ void pmksa_candidate_free(struct wpa_sm 
 		return;
 
 	dl_list_for_each_safe(entry, n, &sm->pmksa_candidates,
-			      struct rsn_pmksa_candidate, list)
+			      struct rsn_pmksa_candidate, list) {
+		dl_list_del(&entry->list);
 		os_free(entry);
+	}
 }
 
 
@@ -378,6 +380,7 @@ void pmksa_candidate_add(struct wpa_sm *
 	}
 
 	if (cand) {
+		dl_list_del(&cand->list);
 		if (prio < PMKID_CANDIDATE_PRIO_SCAN)
 			cand->priority = prio;
 	} else {