forked from jengelh/openldap2
5798d8fa39
- FATE#315028 remove memory limit for slapd - FATE#315415: LDAP compat packages required for older SLES versions For this reson following patches were applied: openldap-2.3.37-libldap-suid.diff openldap-2.3.37-libldap-ldapi_url.dif openldap-2.3.37-libldap-ntlm.diff openldap-2.3.37-libldap-gethostbyname_r.dif openldap-2.3.37-libldap-sasl-max-buff-size.dif openldap-2.3.37-libldap-utf8-ADcanonical.dif openldap-2.3.37-liblber-length-decoding.dif openldap-2.3.37-libldap-ld_defconn-ldap_free_connection.dif openldap-2.3.37-libldap-tls_chkhost-its6239.dif openldap-2.3.37-libldap-ssl.dif OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=106
24 lines
662 B
Plaintext
24 lines
662 B
Plaintext
Index: libraries/libldap/request.c
|
|
===================================================================
|
|
--- libraries/libldap/request.c.orig
|
|
+++ libraries/libldap/request.c
|
|
@@ -601,6 +601,9 @@ ldap_free_connection( LDAP *ld, LDAPConn
|
|
} else {
|
|
prevlc->lconn_next = tmplc->lconn_next;
|
|
}
|
|
+ if ( ld->ld_defconn == lc ) {
|
|
+ ld->ld_defconn = NULL;
|
|
+ }
|
|
break;
|
|
}
|
|
prevlc = tmplc;
|
|
@@ -631,6 +634,8 @@ ldap_free_connection( LDAP *ld, LDAPConn
|
|
}
|
|
if ( lc->lconn_sb != ld->ld_sb ) {
|
|
ber_sockbuf_free( lc->lconn_sb );
|
|
+ } else {
|
|
+ ber_int_sb_close( lc->lconn_sb );
|
|
}
|
|
if ( lc->lconn_rebind_queue != NULL) {
|
|
int i;
|