summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-09-27 00:57:00 +1000
committerKarolin Seeger <kseeger@samba.org>2016-11-03 08:56:34 +0100
commitf90c56973a51dcdc8705acce59a36c0572a0a777 (patch)
tree62dbd41219b3d547778fe88d89e4f82fa521d0c9 /source4
parent1ca221e8703baf85a6b3d45aa528eaad030e40f7 (diff)
downloadsamba-f90c56973a51dcdc8705acce59a36c0572a0a777.tar.gz
dlz-bind: Fix initialization of DLZ_DLOPEN_AGE
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12366 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 370d6baaa60ca7aacab85852622cdca8bdb06d34)
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dlz_minimal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dns_server/dlz_minimal.h b/source4/dns_server/dlz_minimal.h
index 64e9863c645..c1ad65bd47f 100644
--- a/source4/dns_server/dlz_minimal.h
+++ b/source4/dns_server/dlz_minimal.h
@@ -29,11 +29,14 @@
# define DLZ_DLOPEN_VERSION 2
#elif defined (BIND_VERSION_9_10)
# define DLZ_DLOPEN_VERSION 3
-# define DLZ_DLOPEN_AGE 0
#else
# error Unsupported BIND version
#endif
+#if DLZ_DLOPEN_VERSION > 1
+# define DLZ_DLOPEN_AGE 0
+#endif
+
typedef unsigned int isc_result_t;
#if DLZ_DLOPEN_VERSION == 1
typedef bool isc_boolean_t;