Skip to content
Snippets Groups Projects
Commit 1a28cc1c authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

don't perror when not required

parent 19f6e2d9
Branches
Tags
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment