[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:
Evan Hunt 2013-01-10 20:05:28 -08:00
parent d068ddb86d
commit bb102ee495
4 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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));

View file

@ -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

View file

@ -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));