[OpenSIPS-Devel] [OpenSIPS/opensips] cedbe0: [dns_cache] Fix restoring IP array in hostend struct
Bogdan Andrei IANCU
noreply at github.com
Tue Dec 17 10:55:12 UTC 2024
Branch: refs/heads/3.5
Home: https://github.com/OpenSIPS/opensips
Commit: cedbe011a7b746ecf8e35e113993516adae1e592
https://github.com/OpenSIPS/opensips/commit/cedbe011a7b746ecf8e35e113993516adae1e592
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2024-12-17 (Tue, 17 Dec 2024)
Changed paths:
M modules/dns_cache/dns_cache.c
Log Message:
-----------
[dns_cache] Fix restoring IP array in hostend struct
When restoring (from cache) a hostend structure, be sure you end the "aliases" and "addresses" arrays with a NULL element.
Without that NULL terminator, when doing DNS-based failover on a cached hostend, OpenSIPS will use garbage IPs from the addresses array.
(cherry picked from commit 7d31fef29eefca30a8b8be668eebf1694e4df4a5)
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list