[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 commitd51456e453) (cherry picked from commit82faa427b5)
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -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]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user