adb9c9
From 107c5ed7247788a04a23d6c65fca50f96c944345 Mon Sep 17 00:00:00 2001
adb9c9
From: Tomas Krizek <tkrizek@redhat.com>
adb9c9
Date: Tue, 27 Jun 2017 10:41:03 +0200
adb9c9
Subject: [PATCH] Add empty callback for getsize
adb9c9
adb9c9
BIND introduced getsize method in db.h. This is related to
adb9c9
CVE-2016-6170 and allows to set restriction of zone size limit.
adb9c9
adb9c9
Signed-off-by: Tomas Krizek <tkrizek@redhat.com>
adb9c9
---
adb9c9
 src/ldap_driver.c | 3 ++-
adb9c9
 1 file changed, 2 insertions(+), 1 deletion(-)
adb9c9
adb9c9
diff --git a/src/ldap_driver.c b/src/ldap_driver.c
adb9c9
index 53ce1a9..38673b0 100644
adb9c9
--- a/src/ldap_driver.c
adb9c9
+++ b/src/ldap_driver.c
adb9c9
@@ -867,7 +867,8 @@ static dns_dbmethods_t ldapdb_methods = {
adb9c9
 	findext,
adb9c9
 	setcachestats,
adb9c9
 	hashsize,
adb9c9
-	nodefullname
adb9c9
+	nodefullname,
adb9c9
+	NULL, // getsize method not implemented (related BZ1353563)
adb9c9
 };
adb9c9
 
adb9c9
 isc_result_t ATTR_NONNULLS
adb9c9
-- 
adb9c9
2.9.4
adb9c9