-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Damage control in Lua createForward() and createForward6().
- make sure all computed results are passed to a ComboAddress constructor, which will reject ill-formed data. This wasn't the case in createForward, when interpreting part of the requested name as an ipv4 address encoded in hexadecimal (e.g. 7f000001), but the actual name wasn't. This would otherwise end up with a SERVFAIL answer and a Lua stack traceback containing messages such as: Unable to convert presentation address '4294967292.xx.yy.zz' for a name ending with "-4" and six hex digits. - wrap these functions into a try/catch block in order to cope with possible exceptions raised by ComboAddress. This wasn't the case in createForward6 when the requested name contains at least 8 dots - this doesn't imply each component is a valid ipv6 chunk. (cherry picked from commit 9780054)
- Loading branch information
1 parent
a702c6f
commit bca8c8d
Showing
2 changed files
with
87 additions
and
68 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