mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
[BUG] fix segfault on exit in new appsession code
The new appsession code didn't like it when appsession_hash_destroy() was called with an empty hash table. Simply add the check.
This commit is contained in:
parent
f223cc0b5c
commit
177a16a8d1
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,9 @@ void appsession_hash_destroy(struct appsession_hash *hash)
|
|||
unsigned int i;
|
||||
appsess *item;
|
||||
|
||||
if (!hash->table)
|
||||
return;
|
||||
|
||||
for (i = 0; i < TABLESIZE; i++) {
|
||||
while (!LIST_ISEMPTY(&hash->table[i])) {
|
||||
item = LIST_ELEM(hash->table[i].n, appsess *,
|
||||
|
|
|
|||
Loading…
Reference in a new issue