Blob Blame History Raw
From f87d2c532542f7d6ac5c7f3d4063f94ed9250022 Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tkrizek@redhat.com>
Date: Tue, 27 Jun 2017 10:41:03 +0200
Subject: [PATCH] Add empty callback for getsize

BIND introduced getsize method in db.h. This is related to
CVE-2016-6170 and allows to set restriction of zone size limit.

Signed-off-by: Tomas Krizek <tkrizek@redhat.com>
---
 src/ldap_driver.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ldap_driver.c b/src/ldap_driver.c
index 83ec00a..ea60238 100644
--- a/src/ldap_driver.c
+++ b/src/ldap_driver.c
@@ -946,8 +946,9 @@ static dns_dbmethods_t ldapdb_methods = {
 #endif /* LIBDNS_VERSION_MAJOR >= 90 */
 #if LIBDNS_VERSION_MAJOR >= 140
 	setcachestats,
-	hashsize
+	hashsize,
 #endif /* LIBDNS_VERSION_MAJOR >= 140 */
+	NULL, // getsize method not implemented (related BZ1353563)
 };
 
 isc_result_t ATTR_NONNULLS
-- 
2.9.4