Skip to content

Commit

Permalink
fix dns message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Dec 3, 2021
1 parent 84ddf9e commit 38fd2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/DnsMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class DnsResponse : public DnsMessage
void set_request_name(const std::string& name)
{
this->request_name = name;
while (!name.empty() && name.back() == '.')
while (!this->request_name.empty() && this->request_name.back() == '.')
this->request_name.pop_back();
}

Expand Down

0 comments on commit 38fd2d5

Please sign in to comment.