[OpenSIPS-Devel] [OpenSIPS/opensips] 40c2e9: [dns_cache] Fix restoring IP array in hostend struct

Bogdan Andrei IANCU noreply at github.com
Tue Dec 17 10:55:49 UTC 2024


  Branch: refs/heads/3.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 40c2e94efd4a527432b55b797006d5eabfc792dc
      https://github.com/OpenSIPS/opensips/commit/40c2e94efd4a527432b55b797006d5eabfc792dc
  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