summaryrefslogtreecommitdiff
path: root/src/network/dn_skipname.c
AgeCommit message (Collapse)AuthorLines
2019-03-13handle labels with 8-bit byte values in dn_skipnameRyan Fairfax-2/+5
The original logic considered each byte until it either found a 0 value or a value >= 192. This means if a string segment contained any byte >= 192 it was interepretted as a compressed segment marker even if it wasn't in a position where it should be interpretted as such. The fix is to adjust dn_skipname to increment by each segments size rather than look at each character. This avoids misinterpretting string segment characters by not considering those bytes.
2013-04-04implement dn_skipname (legacy resolver function)Rich Felker-0/+12