heimdal Fix DNS name qualification to not mangle IP addresses
authorAndrew Bartlett <abartlet@samba.org>
Tue, 28 Sep 2010 17:59:15 +0000 (03:59 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Sep 2010 18:23:07 +0000 (04:23 +1000)
commit4be269664451f3df82a8b4939ffcf5d4274d02ed
tree18a9c56b29caec4dafbc07242c9174fc4dc3766e
parent89ee9e6518f5bd398bb44e0cd47454e2d69f469e
heimdal Fix DNS name qualification to not mangle IP addresses

If the host running this code used IPv6 forms for IPv4 addreses
then the check for '.' would not be sufficient to determine that this
isn't a name we should mangle.  Instead, check if it can be parsed
as a numeric address first, and only then mangle.

Andrew Bartlett
source4/heimdal/lib/krb5/krbhst.c