Skip to content

Fix the DNS_GETDB_STALEFIRST flag

Arаm Sаrgsyаn requested to merge aram/dns-getdb-flags-fix into main

The DNS_GETDB_STALEFIRST flag is defined as 0x0C, which is the combination of the DNS_GETDB_PARTIAL (0x04) and the DNS_GETDB_IGNOREACL (0x08) flags (0x04 | 0x08 == 0x0C) , which is an obvious error.

All the flags should be power of two, so they don't interfere with each other. Fix the DNS_GETDB_STALEFIRST flag by setting it to 0x10.

Merge request reports