mirror of https://github.com/getdnsapi/getdns.git
sync funcs should GETDNS_RETURN_GOOD on timeouts
This commit is contained in:
parent
fc2f091f05
commit
8bd5baef6f
|
@ -118,8 +118,10 @@ getdns_general_sync(struct getdns_context *context,
|
||||||
else
|
else
|
||||||
*response = create_getdns_response(req);
|
*response = create_getdns_response(req);
|
||||||
|
|
||||||
} else if (response_status == GETDNS_RESPSTATUS_ALL_TIMEOUT)
|
} else if (response_status == GETDNS_RESPSTATUS_ALL_TIMEOUT) {
|
||||||
*response = create_getdns_response(req);
|
*response = create_getdns_response(req);
|
||||||
|
response_status = GETDNS_RETURN_GOOD;
|
||||||
|
}
|
||||||
|
|
||||||
dns_req_free(req);
|
dns_req_free(req);
|
||||||
return response_status;
|
return response_status;
|
||||||
|
|
Loading…
Reference in New Issue