diff --git a/CHANGES b/CHANGES index 5b459ee63c..d6b3068323 100644 --- a/CHANGES +++ b/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 diff --git a/bin/tests/system/dlzexternal/driver.c b/bin/tests/system/dlzexternal/driver.c index 26248fab6e..55976bbcea 100644 --- a/bin/tests/system/dlzexternal/driver.c +++ b/bin/tests/system/dlzexternal/driver.c @@ -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)); diff --git a/contrib/dlz/example/Makefile b/contrib/dlz/example/Makefile index b8509aaf11..5e84043fa6 100644 --- a/contrib/dlz/example/Makefile +++ b/contrib/dlz/example/Makefile @@ -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 diff --git a/contrib/dlz/example/dlz_example.c b/contrib/dlz/example/dlz_example.c index 722d2dcd91..efd1f9c5ed 100644 --- a/contrib/dlz/example/dlz_example.c +++ b/contrib/dlz/example/dlz_example.c @@ -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));