Skip to content

Commit fbae153

Browse files
committed
miekg/dns: fix EDNS-clientsubnet
SUBNET.pack() - Was writing wrong bytes (constants instead of actual IP address bytes) SUBNET.Len() - Returned wrong length for IPv4-mapped IPv6 addresses RFC 7871 non-compliance - Both pack() and unpack() used full address bytes instead of only the significant bytes based on prefix length.
1 parent 7bd1f7a commit fbae153

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

vendor/codeberg.org/miekg/dns/edns_types.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/codeberg.org/miekg/dns/zednspack.go

Lines changed: 22 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)