Commit 1a28cc1c authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

don't perror when not required

parent 19f6e2d9
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment