From f37e52005321fd5a8de5d8a307bb86932e517460 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 31 Aug 2000 07:49:09 +0000 Subject: [PATCH] 2000-08-31 Jeffrey Altman * locate_kdc.c: krb5_locate_srv_dns() Ensure that res_search() is called with a query string that is terminated by a '.' in order to disable the expansion of dns-search lists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12642 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/locate_kdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index 25ab97b75..bae1523a4 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -346,7 +346,7 @@ krb5_locate_srv_dns(realm, service, protocol, addr_pp, naddrs) HEADER hdr; } answer; unsigned char *p=NULL; - char host[MAX_DNS_NAMELEN]; + char host[MAX_DNS_NAMELEN], *h; struct sockaddr *addr = NULL; struct sockaddr_in *sin = NULL; struct hostent *hp = NULL; @@ -359,7 +359,7 @@ krb5_locate_srv_dns(realm, service, protocol, addr_pp, naddrs) int priority; int weight; unsigned short port; - char *host, *h; + char *host; }; struct srv_dns_entry *head = NULL; -- 2.26.2