- Fix subnet store of servfail to not leak memory.

This commit is contained in:
W.C.A. Wijngaards
2026-04-17 13:48:38 +02:00
parent 84ac7e1b58
commit af209a12ea
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -14,6 +14,7 @@
- Fix to increase size of the buffer for the win_svc reportev log
function.
- Fix ttl comparisons in rdata_copy for 32bit signed or unsigned.
- Fix subnet store of servfail to not leak memory.
16 April 2026: Yorgos
- Merge #1406: Introduce new 'tls-protocols' configuration option.
+7 -2
View File
@@ -452,8 +452,13 @@ update_cache(struct module_qstate *qstate, int id)
diff_size = (data->reason_fail?strlen(data->reason_fail)+1:0)
- diff_size;
lock_rw_unlock(&lru_entry->lock);
slabhash_update_space_used(subnet_msg_cache, h, NULL,
diff_size);
if (need_to_insert) {
slabhash_insert(subnet_msg_cache, h, lru_entry,
lru_entry->data, NULL);
} else {
slabhash_update_space_used(subnet_msg_cache, h, NULL,
diff_size);
}
return;
}
if(!qstate->return_msg) {