mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
- Fix #1017: memory corruption related core dumps.
When alloc_reg_obtain has an empty list, return a new allocation.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
14 April 2026: Wouter
|
||||
- Fix #1017: memory corruption related core dumps.
|
||||
When alloc_reg_obtain has an empty list, return a new allocation.
|
||||
|
||||
13 April 2026: Yorgos
|
||||
- Update the documentation of 'max-query-restarts' in the man page.
|
||||
|
||||
|
||||
+1
-1
@@ -328,7 +328,7 @@ size_t alloc_get_mem(struct alloc_cache* alloc)
|
||||
struct regional*
|
||||
alloc_reg_obtain(struct alloc_cache* alloc)
|
||||
{
|
||||
if(alloc->num_reg_blocks > 0) {
|
||||
if(alloc->num_reg_blocks > 0 && alloc->reg_list) {
|
||||
struct regional* r = alloc->reg_list;
|
||||
alloc->reg_list = (struct regional*)r->next;
|
||||
r->next = NULL;
|
||||
|
||||
Reference in New Issue
Block a user