summaryrefslogtreecommitdiffstats
path: root/src/include/k5-int.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-07-25 13:46:53 +0000
committerGreg Hudson <ghudson@mit.edu>2011-07-25 13:46:53 +0000
commit88779e01acedcd7fd78d52b0363f352b12fdbe3e (patch)
tree1b21b3032086d19202d511744d8d8a02141429b0 /src/include/k5-int.h
parentd5429c251d8559d58040a36401f09a14494aa628 (diff)
downloadkrb5-88779e01acedcd7fd78d52b0363f352b12fdbe3e.tar.gz
krb5-88779e01acedcd7fd78d52b0363f352b12fdbe3e.tar.xz
krb5-88779e01acedcd7fd78d52b0363f352b12fdbe3e.zip
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
Diffstat (limited to 'src/include/k5-int.h')
-rw-r--r--src/include/k5-int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index a4ac496c21..2ca649ee74 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -2094,10 +2094,10 @@ struct srv_dns_entry {
unsigned short port;
char *host;
};
-#ifdef KRB5_DNS_LOOKUP
#define MAX_DNS_NAMELEN (15*(MAXHOSTNAMELEN + 1)+1)
+#ifdef KRB5_DNS_LOOKUP
krb5_error_code
krb5int_make_srv_query_realm(const krb5_data *realm,
const char *service,