log h_errno after res_search
This commit is contained in:
parent
0885316155
commit
1e2a4c461d
@ -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));
|
res = res_search(domain, C_IN, qtype, (u_char*) &answer, sizeof(answer_t));
|
||||||
if (-1 == res) {
|
if (-1 == res) {
|
||||||
|
syslog(LOG_ERR, "get_rrs: error in res_search: h_errno=%d, errno=%d", h_errno, errno);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user