mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ldap_perror: don't print matched DN or error text if length is zero.
This commit is contained in:
parent
c73f17fd6e
commit
97683ac5fd
1 changed files with 2 additions and 2 deletions
|
|
@ -145,12 +145,12 @@ ldap_perror( LDAP *ld, LDAP_CONST char *str )
|
|||
s, ld->ld_errno );
|
||||
}
|
||||
|
||||
if ( ld->ld_matched != NULL ) {
|
||||
if ( ld->ld_matched != NULL && ld->ld_matched[0] != '\0' ) {
|
||||
fprintf( stderr, "\tmatched: \"%s\"\n",
|
||||
ld->ld_matched );
|
||||
}
|
||||
|
||||
if ( ld->ld_error != NULL ) {
|
||||
if ( ld->ld_error != NULL && ld->ld_error[0] != '\0' ) {
|
||||
fprintf( stderr, "\tadditional info: %s\n",
|
||||
ld->ld_error );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue