Merge branch 'aram/dns-getdb-flags-fix' into 'main'

Fix the DNS_GETDB_STALEFIRST flag

See merge request isc-projects/bind9!8683
This commit is contained in:
Arаm Sаrgsyаn 2024-02-02 15:05:58 +00:00
commit a863450695
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,6 @@
6333. [bug] Fix the DNS_GETDB_STALEFIRST flag, which was defined
incorrectly in lib/ns/query.c. [GL !8683]
6332. [bug] Range-check the arguments to fetch-quota-param.
[GL #362]

View file

@ -196,11 +196,13 @@ client_trace(ns_client_t *client, int level, const char *message) {
#define CCTRACE(l, m) ((void)m)
#endif /* WANT_QUERYTRACE */
#define DNS_GETDB_NOEXACT 0x01U
#define DNS_GETDB_NOLOG 0x02U
#define DNS_GETDB_PARTIAL 0x04U
#define DNS_GETDB_IGNOREACL 0x08U
#define DNS_GETDB_STALEFIRST 0X0CU
enum {
DNS_GETDB_NOEXACT = 1 << 0,
DNS_GETDB_NOLOG = 1 << 1,
DNS_GETDB_PARTIAL = 1 << 2,
DNS_GETDB_IGNOREACL = 1 << 3,
DNS_GETDB_STALEFIRST = 1 << 4,
};
#define PENDINGOK(x) (((x) & DNS_DBFIND_PENDINGOK) != 0)