Fix bug in 0x20 encoding.

We must only compare case when mapping an answer from upstream
to a forwarding record, not when checking a query to see if it's a
duplicate. Since the saved query name is scrambled, that ensures
that almost all such checks will wrongly fail.

Thanks to Peter Tirsek for an exemplary bug report for this.
This commit is contained in:
Simon Kelley
2025-02-06 10:32:29 +00:00
parent a1a214c393
commit e44165c0f7
2 changed files with 13 additions and 2 deletions

View File

@@ -775,6 +775,7 @@ struct dyndir {
#define FREC_DO_QUESTION 64
#define FREC_HAS_PHEADER 128
#define FREC_GONE_TO_TCP 256
#define FREC_ANSWER 512
struct frec {
struct frec_src {