miekg/dns — pull request #14 by taralx (2012-03-18 06:51:29+00:00)
Title: Little fix

Was going nuts trying to work out why dnssec validation on the root zone wasn't working. Turns out that there's a nasty interaction between the use of "" as the root domain (UnpackDomainName does this) and the way SplitLabels treats that string (as a single label, not zero labels). While fixing SplitLabels was an option, I think the better option is just to use "." properly to start with. This triggered a bug in "base64" string unpack for RRSIG because we were making assumptions about the way domain names unpack. I replaced that code with much safer code. :)