File: add-empty-fallback.diff

package info (click to toggle)
bind-dyndb-ldap 11.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,248 kB
  • sloc: ansic: 9,971; sh: 4,331; makefile: 72
file content (26 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit 5a7d1347aafefca6040e6aa8fab9eb1f232656ae
Author: Tomas Krizek <tkrizek@redhat.com>
Date:   Tue Jun 27 10:41:03 2017 +0200

    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>
    Reviewed-By: Martin Basti <mbasti@redhat.com>

diff --git a/src/ldap_driver.c b/src/ldap_driver.c
index 53ce1a9..38673b0 100644
--- a/src/ldap_driver.c
+++ b/src/ldap_driver.c
@@ -867,7 +867,8 @@ static dns_dbmethods_t ldapdb_methods = {
 	findext,
 	setcachestats,
 	hashsize,
-	nodefullname
+	nodefullname,
+	NULL, // getsize method not implemented (related BZ1353563)
 };
 
 isc_result_t ATTR_NONNULLS