there's room in the buffer, to avoid domain search paths.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16832
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-10-19 Ken Raeburn <raeburn@mit.edu>
+
+ * dnssrv.c (krb5int_make_srv_query_realm): Append a dot to the
+ hostname, if there's room in the buffer, to avoid domain search
+ paths.
+
2004-10-19 Tom Yu <tlyu@mit.edu>
* dnsglue.c (initparse): Skip query type and class when we lack
srv->priority = priority;
srv->weight = weight;
srv->port = port;
+ /* The returned names are fully qualified. Don't let the
+ local resolver code do domain search path stuff. */
+ if (strlen(host) + 2 < sizeof(host))
+ strcat(host, ".");
srv->host = strdup(host);
if (srv->host == NULL) {
free(srv);