mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
Fix parse order in new print_entry ( ctrls )
This commit is contained in:
parent
aa225c2c70
commit
7fd05f235c
1 changed files with 11 additions and 12 deletions
|
|
@ -1131,18 +1131,6 @@ print_entry(
|
|||
}
|
||||
write_ldif( LDIF_PUT_VALUE, "dn", bv.bv_val, bv.bv_len );
|
||||
|
||||
rc = ldap_pvt_get_controls( ber, &ctrls );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
fprintf(stderr, _("print_entry: %d\n"), rc );
|
||||
ldap_perror( ld, "ldap_pvt_get_controls" );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if( ctrls ) {
|
||||
print_ctrls( ctrls );
|
||||
ldap_controls_free( ctrls );
|
||||
}
|
||||
|
||||
if ( includeufn ) {
|
||||
if( ufn == NULL ) {
|
||||
ufn = ldap_dn2ufn( bv.bv_val );
|
||||
|
|
@ -1211,6 +1199,17 @@ print_entry(
|
|||
ber_memfree( bvals );
|
||||
}
|
||||
}
|
||||
rc = ldap_pvt_get_controls( ber, &ctrls );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
fprintf(stderr, _("print_entry: %d\n"), rc );
|
||||
ldap_perror( ld, "ldap_pvt_get_controls" );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
if( ctrls ) {
|
||||
print_ctrls( ctrls );
|
||||
ldap_controls_free( ctrls );
|
||||
}
|
||||
|
||||
if( ber != NULL ) {
|
||||
ber_free( ber, 0 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue