From: Pierangelo Masarati Date: Tue, 4 Apr 2006 00:04:39 +0000 (+0000) Subject: cleanup "matched" output X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e45d11b42ff43e2ce851bf50f0575fff6cdc7627;p=openldap cleanup "matched" output --- diff --git a/tests/progs/slapd-common.c b/tests/progs/slapd-common.c index d7ab921a24..bed9d05c25 100644 --- a/tests/progs/slapd-common.c +++ b/tests/progs/slapd-common.c @@ -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; }