mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-22 09:20:51 -05:00
[v9_9] fixed clientinfo version check
3466. [contrib] Corrected the DNS_CLIENTINFOMETHODS_VERSION check in DLZ example driver. [RT #32275]
This commit is contained in:
parent
d068ddb86d
commit
bb102ee495
4 changed files with 10 additions and 5 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
3466. [contrib] Corrected the DNS_CLIENTINFOMETHODS_VERSION check
|
||||
in DLZ example driver. [RT #32275]
|
||||
|
||||
3465. [bug] Handle isolated reserved ports. [RT #31778]
|
||||
|
||||
3464. [maint] Updates to PKCS#11 openssl patches, supporting
|
||||
|
|
|
|||
|
|
@ -351,8 +351,9 @@ dlz_lookup(const char *zone, const char *name, void *dbdata,
|
|||
char buf[100];
|
||||
strcpy(buf, "unknown");
|
||||
if (methods != NULL &&
|
||||
methods->version - methods->age >=
|
||||
DNS_CLIENTINFOMETHODS_VERSION)
|
||||
methods->version - methods->age <=
|
||||
DNS_CLIENTINFOMETHODS_VERSION &&
|
||||
DNS_CLIENTINFOMETHODS_VERSION <= methods->version)
|
||||
{
|
||||
methods->sourceip(clientinfo, &src);
|
||||
fmt_address(src, buf, sizeof(buf));
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
# this means this Makefile is not portable, so the testsuite
|
||||
# skips this test on platforms where it doesn't build
|
||||
|
||||
CFLAGS=-fPIC -g
|
||||
CFLAGS=-Wall -fPIC -g
|
||||
|
||||
all: dlz_example.so
|
||||
|
||||
|
|
|
|||
|
|
@ -349,8 +349,9 @@ dlz_lookup(const char *zone, const char *name, void *dbdata,
|
|||
char buf[100];
|
||||
strcpy(buf, "unknown");
|
||||
if (methods != NULL &&
|
||||
methods->version - methods->age >=
|
||||
DNS_CLIENTINFOMETHODS_VERSION)
|
||||
methods->version - methods->age <=
|
||||
DNS_CLIENTINFOMETHODS_VERSION &&
|
||||
DNS_CLIENTINFOMETHODS_VERSION <= methods->version)
|
||||
{
|
||||
methods->sourceip(clientinfo, &src);
|
||||
fmt_address(src, buf, sizeof(buf));
|
||||
|
|
|
|||
Loading…
Reference in a new issue