From 57ec0281a8f3b9d45c435a7a03f6642d4059eebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=20Lepp=C3=A4nen?= Date: Fri, 14 May 2021 10:39:48 +0300 Subject: [PATCH] Corrected comparison --- source/6LoWPAN/ws/ws_pae_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/6LoWPAN/ws/ws_pae_auth.c b/source/6LoWPAN/ws/ws_pae_auth.c index 7c2a76c7719..05c51d5f3cd 100644 --- a/source/6LoWPAN/ws/ws_pae_auth.c +++ b/source/6LoWPAN/ws/ws_pae_auth.c @@ -970,7 +970,7 @@ static supp_entry_t *ws_pae_auth_waiting_supp_list_add(pae_auth_t *pae_auth, sup pae_auth->waiting_supp_list_size++; } else { // If the waiting list if full removes the oldest entry from the list - if (pae_auth->waiting_supp_list_size > WAITING_SUPPLICANT_LIST_MAX_SIZE) { + if (pae_auth->waiting_supp_list_size >= WAITING_SUPPLICANT_LIST_MAX_SIZE) { supp_entry_t *delete_supp = ns_list_get_last(&pae_auth->waiting_supp_list); if (!delete_supp) { return NULL;