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 Sep 16, 2020
1 parent a2823dc commit a60a7b1
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 @@ -112,6 +112,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 a60a7b1

Please sign in to comment.