mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
don't perror when not required
This commit is contained in:
parent
19f6e2d943
commit
1a28cc1c64
1 changed files with 6 additions and 1 deletions
|
|
@ -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 a new issue