|
Tomas Hozza |
230113 |
From 576f2f19067c0c974d1d39f92c51e5f3a08fc17f Mon Sep 17 00:00:00 2001
|
|
Tomas Hozza |
230113 |
From: Tomas Hozza <thozza@redhat.com>
|
|
Tomas Hozza |
230113 |
Date: Tue, 4 Mar 2014 16:34:21 +0100
|
|
Tomas Hozza |
230113 |
Subject: [PATCH] Return ISC_R_FAILURE if the API version check fails
|
|
Tomas Hozza |
230113 |
|
|
Tomas Hozza |
230113 |
Signed-off-by: Tomas Hozza <thozza@redhat.com>
|
|
Tomas Hozza |
230113 |
---
|
|
Tomas Hozza |
230113 |
bin/named/unix/dlz_dlopen_driver.c | 1 +
|
|
Tomas Hozza |
230113 |
bin/named/win32/dlz_dlopen_driver.c | 1 +
|
|
Tomas Hozza |
230113 |
2 files changed, 2 insertions(+)
|
|
Tomas Hozza |
230113 |
|
|
Tomas Hozza |
230113 |
diff --git a/bin/named/unix/dlz_dlopen_driver.c b/bin/named/unix/dlz_dlopen_driver.c
|
|
Tomas Hozza |
230113 |
index 2ba8a02..62b6614 100644
|
|
Tomas Hozza |
230113 |
--- a/bin/named/unix/dlz_dlopen_driver.c
|
|
Tomas Hozza |
230113 |
+++ b/bin/named/unix/dlz_dlopen_driver.c
|
|
Tomas Hozza |
230113 |
@@ -330,6 +330,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
|
|
Tomas Hozza |
230113 |
"dlz_dlopen: incorrect version %d "
|
|
Tomas Hozza |
230113 |
"should be %d in '%s'",
|
|
Tomas Hozza |
230113 |
cd->version, DLZ_DLOPEN_VERSION, cd->dl_path);
|
|
Tomas Hozza |
230113 |
+ result = ISC_R_FAILURE;
|
|
Tomas Hozza |
230113 |
goto failed;
|
|
Tomas Hozza |
230113 |
}
|
|
Tomas Hozza |
230113 |
|
|
Tomas Hozza |
230113 |
diff --git a/bin/named/win32/dlz_dlopen_driver.c b/bin/named/win32/dlz_dlopen_driver.c
|
|
Tomas Hozza |
230113 |
index 0c192b4..62008c0 100644
|
|
Tomas Hozza |
230113 |
--- a/bin/named/win32/dlz_dlopen_driver.c
|
|
Tomas Hozza |
230113 |
+++ b/bin/named/win32/dlz_dlopen_driver.c
|
|
Tomas Hozza |
230113 |
@@ -314,6 +314,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
|
|
Tomas Hozza |
230113 |
"dlz_dlopen: incorrect version %d "
|
|
Tomas Hozza |
230113 |
"should be %d in '%s'",
|
|
Tomas Hozza |
230113 |
cd->version, DLZ_DLOPEN_VERSION, cd->dl_path);
|
|
Tomas Hozza |
230113 |
+ result = ISC_R_FAILURE;
|
|
Tomas Hozza |
230113 |
goto failed;
|
|
Tomas Hozza |
230113 |
}
|
|
Tomas Hozza |
230113 |
|
|
Tomas Hozza |
230113 |
--
|
|
Tomas Hozza |
230113 |
1.8.5.3
|
|
Tomas Hozza |
230113 |
|