Skip Menu |
 

This queue is for tickets about the Net-DNS-SEC CPAN distribution.

Report information
The Basics
Id: 97457
Status: resolved
Priority: 0/
Queue: Net-DNS-SEC

People
Owner: Nobody in particular
Requestors: gbrown [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: !hex! error when parsing NSEC3 with empty salt
Download (untitled) / with headers
text/plain 606b
Section 3.3 of RFC 5155 states that: o The Salt field is represented as a sequence of case-insensitive hexadecimal digits. Whitespace is not allowed within the sequence. The Salt field is represented as "-" (without the quotes) when the Salt Length field has a value of 0. However, Net::DNS::RR::NSEC3::salt() will die if it encounters a salt field which contains "-": sub salt { my $self = shift; $self->saltbin( pack "H*", map { die "!hex! ($_)" if m/[^0-9A-Fa-f]/; $_ } join "", @_ ) if scalar @_; unpack "H*", $self->saltbin() if defined wantarray; }
From: rwfranks [...] acm.org
Download (untitled) / with headers
text/plain 411b
On Thu Jul 24 07:10:52 2014, GBROWN wrote: Show quoted text
> However, Net::DNS::RR::NSEC3::salt() will die if it encounters a salt > field which contains "-": >
Fixed on trunk. Note: The - placeholder is only valid when parsing the RR string (or reading a zone file). The following statements are not valid: $rr = new Net::DNS::RR( type => 'NSEC3', salt => '-', ... ); $rr->salt('-');
Thanks, a fix for this was released on August 15 with Net::DNS::SEC 0.20.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.