Commit 28205b5d authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Fix propagation of DoH response parsing errors.

parent c67626e9
......@@ -656,7 +656,8 @@ Client::State::resolve_tcp_doh( const std::string& host
(s, doh::payload_size, cancel, yield[ec].tag("slurp"));
return_or_throw_on_error(yield, cancel, ec, TcpLookup());
return doh::parse_response(rs, host, *portn_o, ec);
auto lookup = doh::parse_response(rs, host, *portn_o, ec);
return or_throw(yield, ec, move(lookup));
}
TcpLookup
......
Supports Markdown
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