log h_errno after res_search

This commit is contained in:
whottgen 2004-10-12 11:26:02 +00:00
parent 0885316155
commit 1e2a4c461d

View File

@ -166,6 +166,7 @@ static void** get_rrs(char *domain, int qtype) {
res = res_search(domain, C_IN, qtype, (u_char*) &answer, sizeof(answer_t));
if (-1 == res) {
syslog(LOG_ERR, "get_rrs: error in res_search: h_errno=%d, errno=%d", h_errno, errno);
return NULL;
}