Limit maximum number of pending SA Queries
There is no point in starting a huge number of pending SA Queries, so limit the number of pending queries to 1000 to have an explicit limit for how large sa_query_count can grow. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
02b43c557c
commit
ae7193611f
1 changed files with 2 additions and 0 deletions
|
@ -1140,6 +1140,8 @@ static void ap_sa_query_timer(void *eloop_ctx, void *timeout_ctx)
|
|||
if (sta->sa_query_count > 0 &&
|
||||
ap_check_sa_query_timeout(hapd, sta))
|
||||
return;
|
||||
if (sta->sa_query_count >= 1000)
|
||||
return;
|
||||
|
||||
nbuf = os_realloc_array(sta->sa_query_trans_id,
|
||||
sta->sa_query_count + 1,
|
||||
|
|
Loading…
Reference in a new issue