diff --git a/src/dns.c b/src/dns.c index c9fe6394..5ca728f7 100644 --- a/src/dns.c +++ b/src/dns.c @@ -2131,15 +2131,15 @@ hsk_dns_name_parse( for (j = off; j < off + c; j++) { uint8_t b = data[j]; - // Hack because we're - // using c-strings. - if (b == 0x00) - b = 0xff; + // // Hack because we're + // // using c-strings. + // if (b == 0x00) + // b = 0xff; - // This allows for double-dots - // too easily in our design. - if (b == 0x2e) - b = 0xfe; + // // This allows for double-dots + // // too easily in our design. + // if (b == 0x2e) + // b = 0xfe; if (name) name[noff] = b; @@ -2299,13 +2299,13 @@ hsk_dns_name_serialize( continue; } - // 0xff -> NUL - if (ch == -1) - ch = '\0'; + // // 0xff -> NUL + // if (ch == -1) + // ch = '\0'; - // 0xfe -> . - if (ch == -2) - ch = '.'; + // // 0xfe -> . + // if (ch == -2) + // ch = '.'; data[off++] = ch; }