]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Forward controls correctly in the face of proxyauth
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 13 Jun 2017 18:42:40 +0000 (19:42 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
servers/lloadd/operation.c

index a067ebcf548263eb385ccbeb5ecb08e5d828b9ae..609ed27ddff1e6ab5f16e624a36e725e39e18de4 100644 (file)
@@ -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,