miekg/dns — comment on commit 5dbfc48a5ee2235dd859f60b900e291b014a3167
File: t/miek.nl.signed_test line 67
By miekg:

[ Quoting at 03:52 on Feb 14 in "Re: [dns] start fixi..." ]
> Here, again I'm not sure, but comparing to the the specs of e.g. NULL RR presentation format, I think the `0` length is not allowed. I.e., when RDLENGHT == 0 the presentation form of the RDATA would be only `\#`, sans both the count and following data. Thougths?

Examples in rfc3597 says otherwise, but that is just the example.

The RDATA section of an RR of unknown type is represented as a
sequence of white space separated words as follows:

The special token \# (a backslash immediately followed by a hash
sign), which identifies the RDATA as having the generic encoding
defined herein rather than a traditional type-specific encoding.

An unsigned decimal integer specifying the RDATA length in octets.

Zero or more words of hexadecimal data encoding the actual RDATA
field, each containing an even number of hexadecimal digits.

The number of octets look mandatory to me.

grtz Miek