Skip to content
Snippets Groups Projects
Commit 7fd05f23 authored by Howard Chu's avatar Howard Chu
Browse files

Fix parse order in new print_entry ( ctrls )

parent aa225c2c
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment