Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix dn_expand pointer following | Michael Forney | 2013-11-23 | 1 | -1/+1 |
| | |||||
* | fix regression in dn_expand/reverse dns | Rich Felker | 2013-08-23 | 1 | -1/+1 |
| | | | | | | off-by-one error copying the name components was yielding junk at the beginning and truncating one character at the end (of every component). | ||||
* | fix length computation in dn_expand | Rich Felker | 2013-08-14 | 1 | -3/+5 |
| | | | | | | | there are two possible points where the length is evaluated: either the first 'compression' jump, or the null terminator if no jumps have taken place yet. the previous code only measured the length of the first component. | ||||
* | de-duplicate dn_expand, fix return value and signature, clean up | Rich Felker | 2013-08-14 | 1 | -21/+20 |
| | | | | | | | | | | | | | | | | | the duplicate code in dn_expand and its incorrect return values are both results of the history of the code: the version in __dns.c was originally written with no awareness of the legacy resolver API, and was later copy-and-paste duplicated to provide the legacy API. this commit is the first of a series that will restructure the internal dns code to share as much code as possible with the legacy resolver API functions. I have also removed the loop detection logic, since the output buffer length limit naturally prevents loops. in order to avoid long runtime when encountering a loop if the caller provided a ridiculously long buffer, the caller-provided length is clamped at the maximum dns name length. | ||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+28 |