Commit 55ecb082 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Handle c-ares success without result

parent 3933280d
......@@ -298,7 +298,13 @@ void DNSResolver::on_result(int status, hostent *hostent) {
}
auto ap = *hostent->h_addr_list;
assert(ap);
if (!ap) {
if (LOG_ENABLED(INFO)) {
LOG(INFO) << "Name lookup for " << name_ << "failed: no address returned";
}
status_ = DNS_STATUS_ERROR;
return;
}
switch (hostent->h_addrtype) {
case AF_INET:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment