From: Jouni Malinen Date: Sun, 29 Dec 2019 17:32:29 +0000 (+0200) Subject: RRB: Do not reorder locally delivered messages X-Git-Tag: hostap_2_10~2056 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b1105afef5de3427d155673b09a4ca80281de5f;p=thirdparty%2Fhostap.git RRB: Do not reorder locally delivered messages 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 --- diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c index 49728a307..daddc59cc 100644 --- a/src/ap/wpa_auth_glue.c +++ b/src/ap/wpa_auth_glue.c @@ -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))