mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-01 22:24:55 +02:00
- Fix to protect custom regional create against small values.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
11 October 2021: Wouter
|
||||
- Fix chaos replies to have truncation for short message lengths,
|
||||
or long reply strings.
|
||||
- Fix to protect custom regional create against small values.
|
||||
|
||||
4 October 2021: Wouter
|
||||
- Fix to add example.conf note for outbound-msg-retry.
|
||||
|
||||
@@ -103,6 +103,8 @@ regional_create_custom_large_object(size_t size, size_t large_object_size)
|
||||
struct regional*
|
||||
regional_create_custom(size_t size)
|
||||
{
|
||||
if(size < sizeof(struct regional))
|
||||
size = sizeof(struct regional);
|
||||
return regional_create_custom_large_object(size,
|
||||
REGIONAL_LARGE_OBJECT_SIZE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user