dlz-bind: Fix initialization of DLZ_DLOPEN_AGE
authorAmitay Isaacs <amitay@gmail.com>
Mon, 26 Sep 2016 14:57:00 +0000 (00:57 +1000)
committerJeremy Allison <jra@samba.org>
Thu, 27 Oct 2016 21:53:13 +0000 (23:53 +0200)
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>
source4/dns_server/dlz_minimal.h

index 64e9863c6459e909fd2d5bee224bb73061a09b95..c1ad65bd47fc2a9a7429f0ca9d55112b217eecbe 100644 (file)
 # 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;