- Fix to protect custom regional create against small values.

This commit is contained in:
W.C.A. Wijngaards 2021-10-11 17:23:30 +02:00
parent 09afdb7669
commit ecb0b44ba8
2 changed files with 3 additions and 0 deletions

View file

@ -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.

View file

@ -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);
}