]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RRB: Do not reorder locally delivered messages
authorJouni Malinen <j@w1.fi>
Sun, 29 Dec 2019 17:32:29 +0000 (19:32 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2019 18:17:57 +0000 (20:17 +0200)
Add new messages to the end of the l2_oui_queue instead of inserting
them at the beginning so that the dl_list_for_each_safe() iteration in
hostapd_oui_deliver_later() goes through the messages in the same order
they were originally queued.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/wpa_auth_glue.c

index 49728a30768b0e3569adffe0adc8f6e949c264a3..daddc59ccc09ba375b90b3a1e1fbbfbd1eaef400 100644 (file)
@@ -740,7 +740,7 @@ static int hostapd_wpa_auth_oui_iter(struct hostapd_iface *iface, void *ctx)
                data->data_len = idata->data_len;
                data->oui_suffix = idata->oui_suffix;
 
-               dl_list_add(&hapd->l2_oui_queue, &data->list);
+               dl_list_add_tail(&hapd->l2_oui_queue, &data->list);
 
                if (!eloop_is_timeout_registered(hostapd_oui_deliver_later,
                                                 hapd, NULL))