]> git.sur5r.net Git - openldap/commitdiff
Fix undef'd code for empty attributes.
authorHoward Chu <hyc@openldap.org>
Mon, 10 Feb 2003 07:41:30 +0000 (07:41 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 10 Feb 2003 07:41:30 +0000 (07:41 +0000)
clients/tools/ldapsearch.c

index ee7611c6a4fc75816eb2e0964c8813c0cd48118b..67beac471e0279102fcccb337d3abc356e82c3c0 100644 (file)
@@ -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 {