mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#4048 from HEAD
This commit is contained in:
parent
41b2bd49b3
commit
91bba777e8
2
CHANGES
2
CHANGES
@ -7,7 +7,7 @@ OpenLDAP 2.2.29 Engineering
|
||||
Fixed back-bdb/hdb pointer/integer size warnings (ITS#4015)
|
||||
Fixed back-hdb slapcat EntryInfo cache growth (ITS#4010)
|
||||
Fixed liblber sb_dgram_read length (ITS#4046)
|
||||
Fixed libldap unbind memory leaks (ITS#4052, 4053)
|
||||
Fixed libldap memory leaks (ITS#4048, 4052, 4053)
|
||||
|
||||
OpenLDAP 2.2.28 Release
|
||||
Fixed slapd ACL logging
|
||||
|
@ -719,17 +719,19 @@ ldap_int_sasl_bind(
|
||||
}
|
||||
|
||||
if ( rc != LDAP_SUCCESS && rc != LDAP_SASL_BIND_IN_PROGRESS ) {
|
||||
if( scred && scred->bv_len ) {
|
||||
/* and server provided us with data? */
|
||||
if( scred ) {
|
||||
if ( scred->bv_len ) {
|
||||
/* and server provided us with data? */
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( TRANSPORT, DETAIL1,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
LDAP_LOG ( TRANSPORT, DETAIL1,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
#endif
|
||||
}
|
||||
ber_bvfree( scred );
|
||||
}
|
||||
rc = ld->ld_errno;
|
||||
@ -738,17 +740,19 @@ ldap_int_sasl_bind(
|
||||
|
||||
if( rc == LDAP_SUCCESS && saslrc == SASL_OK ) {
|
||||
/* we're done, no need to step */
|
||||
if( scred && scred->bv_len ) {
|
||||
if( scred ) {
|
||||
if ( scred->bv_len ) {
|
||||
/* but server provided us with data! */
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( TRANSPORT, DETAIL1,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
LDAP_LOG ( TRANSPORT, DETAIL1,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
||||
rc, saslrc, scred->bv_len );
|
||||
#endif
|
||||
}
|
||||
ber_bvfree( scred );
|
||||
rc = ld->ld_errno = LDAP_LOCAL_ERROR;
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user