diff options
author | Jeremy Allison <jra@samba.org> | 2011-03-24 12:11:02 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-03-24 13:07:36 -0700 |
commit | 5176a0b2af1bb16e530412faaa2f36108f312a03 (patch) | |
tree | 6c80fdef8ee87d81d3af446e7ec86e1c5df8eca1 /libds | |
parent | 72bd60b2fee20dc85c1cc88d5d4e2efdfb74b701 (diff) | |
download | samba-5176a0b2af1bb16e530412faaa2f36108f312a03.tar.gz samba-5176a0b2af1bb16e530412faaa2f36108f312a03.tar.bz2 samba-5176a0b2af1bb16e530412faaa2f36108f312a03.zip |
Fix is_myname_or_ipaddr() to be robust against strange DNS setups.
If IPv6 DNS names are turned on, but Samba isn't configured to
listen on an IPv6 interface, then is_myname_or_ipaddr() can return
false on a valid DNS name that it should detect is our own. If the
IPv6 addr is returned by preference, then looking at the first addr
only causes is_myname_or_ipaddr() to fail. We need to look at all the
addresses returned by the DNS lookup and check all of them against
our interface list. This is an order N^2 lookup, but there shouldn't
be enough addresses to make this a practical problem.
Jeremy.
Diffstat (limited to 'libds')
0 files changed, 0 insertions, 0 deletions