From: Debian OpenLDAP Maintainers Date: Sat, 10 Aug 2019 18:58:18 +0000 (+0100) Subject: no-bdb-ABI-second-guessing X-Git-Tag: archive/raspbian/2.4.47+dfsg-3+rpi1+deb10u1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5423640c1b3b6807f6b65d99a268e73cf586cefb;p=openldap.git no-bdb-ABI-second-guessing Gbp-Pq: Name no-bdb-ABI-second-guessing --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index cdd97da7..8462f664 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -768,7 +768,7 @@ bdb_back_initialize( bi->bi_controls = controls; { /* version check */ - int major, minor, patch, ver; + int major, minor, patch; char *version = db_version( &major, &minor, &patch ); #ifdef HAVE_EBCDIC char v2[1024]; @@ -782,17 +782,6 @@ bdb_back_initialize( version = v2; #endif - ver = (major << 24) | (minor << 16) | patch; - if( ver != DB_VERSION_FULL ) { - /* fail if a versions don't match */ - Debug( LDAP_DEBUG_ANY, - LDAP_XSTRING(bdb_back_initialize) ": " - "BDB library version mismatch:" - " expected " DB_VERSION_STRING "," - " got %s\n", version, 0, 0 ); - return -1; - } - Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_back_initialize) ": %s\n", version, 0, 0 ); }