Fix build without KRB5_DNS_LOOKUP
authorGreg Hudson <ghudson@mit.edu>
Mon, 25 Jul 2011 13:46:53 +0000 (13:46 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 25 Jul 2011 13:46:53 +0000 (13:46 +0000)
commit88779e01acedcd7fd78d52b0363f352b12fdbe3e
tree1b21b3032086d19202d511744d8d8a02141429b0
parentd5429c251d8559d58040a36401f09a14494aa628
Fix build without KRB5_DNS_LOOKUP

Define MAX_DNS_NAMELEN unconditionally in k5-int.h as we use it
unconditionally in kdc_util.c.  Don't define it in locate_kdc.c.

Conditionalize dns_locate_server() in locate_kdc.c as its only call
site (in k5_locate_server) and its helper function (locate_srv_dns_1)
are conditional.

From Chris Hecker with minor changes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25042 dc483132-0cff-0310-8789-dd5450dbe970
src/include/k5-int.h
src/lib/krb5/os/locate_kdc.c