[OpenSIPS-Devel] [OpenSIPS/opensips] 7d31fe: [dns_cache] Fix restoring IP array in hostend struct
Bogdan Andrei IANCU
noreply at github.com
Tue Dec 17 10:53:34 UTC 2024
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 7d31fef29eefca30a8b8be668eebf1694e4df4a5
https://github.com/OpenSIPS/opensips/commit/7d31fef29eefca30a8b8be668eebf1694e4df4a5
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.
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list