From: Howard Chu Date: Tue, 23 Sep 2003 11:29:20 +0000 (+0000) Subject: Fix prev commit for empty attrs X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~668 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c6cd37c5cf37a932c9ab25b5ee79fdb9c3da406a;p=openldap Fix prev commit for empty attrs --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 738a204985..047f055cf5 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1161,10 +1161,10 @@ print_entry( { if (bv.bv_val == NULL) break; - if ( attrsonly || !bvals ) { + if ( attrsonly ) { write_ldif( LDIF_PUT_NOVALUE, bv.bv_val, NULL, 0 ); - } else { + } else if ( bvals ) { for ( i = 0; bvals[i].bv_val != NULL; i++ ) { if ( vals2tmp > 1 || ( vals2tmp && ldif_is_not_printable( bvals[i].bv_val, bvals[i].bv_len ) ))