-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't return a valid hash in questions_hash() to signify an error
Use a proper return code and store the hash in a given pointer instead. In addition, if the packet is not a valid DNS query, I don't think ignoring the hash is the right thing to do. Either something is broken or we're under attack, or someone is fuzzing the proxy. Either way, normal applications have no reason to try sending non-DNS queries to the proxy, so we'd better print an error and drop the packet.
- Loading branch information
Showing
3 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters