mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10335 ldapsearch: fix handling of -LL in print_reference()
print_reference() was printing comments even when disabled with -LL option.
This commit is contained in:
parent
87a2d70750
commit
e77ab14f0c
1 changed files with 6 additions and 4 deletions
|
|
@ -2061,10 +2061,12 @@ static void print_reference(
|
|||
}
|
||||
|
||||
if( refs ) {
|
||||
int i;
|
||||
for( i=0; refs[i] != NULL; i++ ) {
|
||||
tool_write_ldif( ldif ? LDIF_PUT_COMMENT : LDIF_PUT_VALUE,
|
||||
"ref", refs[i], strlen(refs[i]) );
|
||||
if( ldif < 2 ) {
|
||||
int i;
|
||||
for( i=0; refs[i] != NULL; i++ ) {
|
||||
tool_write_ldif( ldif ? LDIF_PUT_COMMENT : LDIF_PUT_VALUE,
|
||||
"ref", refs[i], strlen(refs[i]) );
|
||||
}
|
||||
}
|
||||
ber_memvfree( (void **) refs );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue