Skip to content

Commit

Permalink
Corrected comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Leppänen committed May 17, 2021
1 parent 7d853de commit 57ec028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_pae_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57ec028

Please sign in to comment.