Skip to content

Commit

Permalink
rs: do not strip authority section in response
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu committed Mar 6, 2024
1 parent 026b1ce commit 19b14f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,8 @@ hsk_rs_respond(
if (result->secure && !result->bogus)
msg->flags |= HSK_DNS_AD;

// Strip out non-answer sections.
// Strip out additional section
if (msg->an.size > 0) {
while (msg->ns.size > 0) {
hsk_dns_rr_t *rr = hsk_dns_rrs_pop(&msg->ns);
hsk_dns_rr_free(rr);
}

while (msg->ar.size > 0) {
hsk_dns_rr_t *rr = hsk_dns_rrs_pop(&msg->ar);
hsk_dns_rr_free(rr);
Expand Down

0 comments on commit 19b14f6

Please sign in to comment.