mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Forward controls correctly in the face of proxyauth
This commit is contained in:
parent
5b1ad43178
commit
7eeb5bb801
1 changed files with 2 additions and 11 deletions
|
|
@ -689,18 +689,9 @@ request_process( Connection *client, Operation *op )
|
|||
CONNECTION_UNLOCK_INCREF(client);
|
||||
|
||||
if ( !BER_BVISNULL( &op->o_ctrls ) ) {
|
||||
BerElement *control_ber = ber_alloc();
|
||||
BerValue controls;
|
||||
|
||||
if ( !control_ber ) {
|
||||
goto fail;
|
||||
}
|
||||
ber_init2( control_ber, &op->o_ctrls, 0 );
|
||||
ber_peek_element( control_ber, &controls );
|
||||
|
||||
ber_write( output, controls.bv_val, controls.bv_len, 0 );
|
||||
ber_free( control_ber, 0 );
|
||||
ber_write( output, op->o_ctrls.bv_val, op->o_ctrls.bv_len, 0 );
|
||||
}
|
||||
|
||||
ber_printf( output, /* "{{" */ "}}" );
|
||||
} else {
|
||||
ber_printf( output, "t{titOtO}", LDAP_TAG_MESSAGE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue