From a667cd989b9e8350f1307301ecb153498c6725f3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 10 Feb 2003 07:41:30 +0000 Subject: [PATCH] Fix undef'd code for empty attributes. --- clients/tools/ldapsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index ee7611c6a4..67beac471e 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1313,7 +1313,7 @@ print_entry( { if (bv.bv_val == NULL) break; - if ( attrsonly ) { + if ( attrsonly || !bvals ) { write_ldif( LDIF_PUT_NOVALUE, bv.bv_val, NULL, 0 ); } else { -- 2.39.5