[v9_8] fix API mismatch bug in DLZ

3775.	[bug]		dlz_dlopen driver could return the wrong error
			code on API version mismatch, leading to a segfault.
			[RT #35495]

(cherry picked from commit d51456e453)
(cherry picked from commit 82faa427b5)
This commit is contained in:
Evan Hunt
2014-03-04 09:00:35 -08:00
parent 5ffba0a637
commit 853416f54a
3 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
3775. [bug] dlz_dlopen driver could return the wrong error
code on API version mismatch, leading to a segfault.
[RT #35495]
3773. [func] "host", "nslookup" and "nsupdate" now have
options to print the version number and exit.
[RT #26057]

View File

@@ -327,6 +327,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
"dlz_dlopen: incorrect version %d "
"should be %d in '%s'",
cd->version, DLZ_DLOPEN_VERSION, cd->dl_path);
result = ISC_R_FAILURE;
goto failed;
}

View File

@@ -311,6 +311,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
"dlz_dlopen: incorrect version %d "
"should be %d in '%s'",
cd->version, DLZ_DLOPEN_VERSION, cd->dl_path);
result = ISC_R_FAILURE;
goto failed;
}