2000-08-31 Jeffrey Altman <jaltman@columbia.edu>
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 31 Aug 2000 07:49:09 +0000 (07:49 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 31 Aug 2000 07:49:09 +0000 (07:49 +0000)
        * 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

index 25ab97b75dd8a9f9b91f594c4e69b7e3288f6f92..bae1523a46a16b2d1d5ed6c423b4f6fb88c1ea15 100644 (file)
@@ -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;