mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
don't perror when not required
This commit is contained in:
parent
19f6e2d943
commit
1a28cc1c64
@ -1017,7 +1017,12 @@ tool_bind( LDAP *ld )
|
||||
ldap_controls_free( ctrls );
|
||||
}
|
||||
|
||||
if ( err != LDAP_SUCCESS || msgbuf[0] || matched || info || refs ) {
|
||||
if ( err != LDAP_SUCCESS
|
||||
|| msgbuf[0]
|
||||
|| ( matched && matched[ 0 ] )
|
||||
|| ( info && info[ 0 ] )
|
||||
|| refs )
|
||||
{
|
||||
tool_perror( err, msgbuf, matched, info, refs );
|
||||
|
||||
if( matched ) ber_memfree( matched );
|
||||
|
Loading…
Reference in New Issue
Block a user