mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
hostapd: update the fix for a race condition in mesh new peer handling
Prevent the mesh authentication state machine from getting reset on bogus new peer discovery Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
f948aa4d4f
commit
5b6997dcb3
@ -1,6 +1,6 @@
|
|||||||
From: Felix Fietkau <nbd@nbd.name>
|
From: Felix Fietkau <nbd@nbd.name>
|
||||||
Date: Tue, 12 Feb 2019 14:22:43 +0100
|
Date: Tue, 12 Feb 2019 14:22:43 +0100
|
||||||
Subject: [PATCH] wpa_supplicant: fix race condition in mesh mpm new peer
|
Subject: [PATCH v2] wpa_supplicant: fix race condition in mesh mpm new peer
|
||||||
handling
|
handling
|
||||||
|
|
||||||
When wpa_supplicant receives another new peer event before the first one
|
When wpa_supplicant receives another new peer event before the first one
|
||||||
@ -24,7 +24,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|||||||
- return NULL;
|
- return NULL;
|
||||||
- }
|
- }
|
||||||
+ if (sta)
|
+ if (sta)
|
||||||
+ return sta;
|
+ return NULL;
|
||||||
+
|
+
|
||||||
+ sta = ap_sta_add(data, addr);
|
+ sta = ap_sta_add(data, addr);
|
||||||
+ if (!sta)
|
+ if (!sta)
|
||||||
|
Loading…
Reference in New Issue
Block a user