Skip to content

Commit

Permalink
Correctly set response code BADVERS in Catalog
Browse files Browse the repository at this point in the history
Related to hickory-dns#1203
  • Loading branch information
jonasbb committed Oct 9, 2020
1 parent 9e4f9dd commit f3f3efe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/server/src/authority/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ impl RequestHandler for Catalog {
req_edns.version()
);
response_header.set_response_code(ResponseCode::BADVERS);
resp_edns.set_rcode_high(ResponseCode::BADVERS.high());
response.edns(resp_edns);

// TODO: should ResponseHandle consume self?
Expand Down

0 comments on commit f3f3efe

Please sign in to comment.