From: Ondřej Kuzník Date: Tue, 13 Jun 2017 18:42:40 +0000 (+0100) Subject: Forward controls correctly in the face of proxyauth X-Git-Tag: OPENLDAP_REL_ENG_2_5_1ALPHA~18^2~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eeb5bb80166a5b7be0638a74e5418cefb13c5d9;p=thirdparty%2Fopenldap.git Forward controls correctly in the face of proxyauth --- diff --git a/servers/lloadd/operation.c b/servers/lloadd/operation.c index a067ebcf54..609ed27ddf 100644 --- a/servers/lloadd/operation.c +++ b/servers/lloadd/operation.c @@ -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,