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

cleanup "matched" output

parent 4ce1deab
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,9 @@ tester_ldap_error( LDAP *ld, const char *fname )
ldap_get_option( ld, LDAP_OPT_MATCHED_DN, (void *)&text );
if ( text != NULL ) {
fprintf( stderr, "\tmatched: %s\n", text );
if ( text[ 0 ] != '\0' ) {
fprintf( stderr, "\tmatched: %s\n", text );
}
ldap_memfree( text );
text = NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment