Habbie/powerdns — pull request #34 by cyclops1982 (2012-05-21 20:57:51+00:00)
Title: dnslabel bug

Hi Peter,

This should fix things. appendRange and appendChar FTW! ;-)

Bug was reported by Henry Paulissen (\007henrypa\007internl\003net).
DNSLabel has changed to handle the DNSLabel(const char *human) better if it
was above 64 chars. The appendRange is now used which has a check for this.
The checks itself have been updated because they contained an off-by-one bug.

The things i tested:
verylong.verylong.verylong.verylong.verylong.verylong.verylongverylong
verylong.verylong.verylong.verylong.verylong.verylong.verylongv.
verylong.verylong.verylong.verylong.verylong.verylong.verylong.
verylong.verylong.verylong.verylong.verylong.verylong.verylong.abc
verylong.verylong.verylong.verylong.verylong.verylong.verylon.gabc.
verylong.verylong.verylong.verylong.verylong.verylong.verylon.gabc

Please test it too :-)