use_malloc = 1;
n = res_nmkquery(statp, QUERY, name, class, type, NULL,
0, NULL, buf, MAXPACKET);
- }
+ }
}
if (__builtin_expect (n <= 0, 0)) {
#ifdef DEBUG
return (__libc_res_nquery(statp, cp, class, type, answer,
anslen, answerp));
+ printf("dots=%d, statp->ndots=%d, trailing_dot=%d, name=%s\n",
+ (int)dots,(int)statp->ndots,(int)trailing_dot,name);
+
/*
* If there are enough dots in the name, let's just give it a
* try 'as is'. The threshold can be set with the "ndots" option.
* for the name, and "." is not on the search list, then try an as-is
* query now.
*/
- if (statp->ndots && !(tried_as_is || root_on_list)) {
+ if (dots && !(tried_as_is || root_on_list)) {
ret = __libc_res_nquerydomain(statp, name, NULL, class, type,
answer, anslen, answerp);
if (ret > 0)
const char *longname = nbuf;
int n, d;
+ write(2,"<<aaaa\n",7);
+
#ifdef DEBUG
if (statp->options & RES_DEBUG)
printf(";; res_nquerydomain(%s, %s, %d, %d)\n",
}
sprintf(nbuf, "%s.%s", name, domain);
}
- return (__libc_res_nquery(statp, longname, class, type, answer,
+ int r = (__libc_res_nquery(statp, longname, class, type, answer,
anslen, answerp));
+ write(2,">>aaaa\n",7);
+ return r;
+
}
int