sync funcs should GETDNS_RETURN_GOOD on timeouts

This commit is contained in:
Willem Toorop 2014-07-01 23:40:49 +02:00
parent fc2f091f05
commit 8bd5baef6f
1 changed files with 3 additions and 1 deletions

View File

@ -118,8 +118,10 @@ getdns_general_sync(struct getdns_context *context,
else
*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_status = GETDNS_RETURN_GOOD;
}
dns_req_free(req);
return response_status;