]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: do not set the aead_tag flags in sample_conv_aes_gcm()
authorDragan Dosen <ddosen@haproxy.com>
Mon, 11 Mar 2024 17:17:26 +0000 (18:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Mar 2024 18:20:44 +0000 (19:20 +0100)
This was not useful and was using uninitialized value. Introduced with
the commit 08ac28237 ("MINOR: Add aes_gcm_enc converter").

Must be backported wherever the commit 08ac28237 was backported.

src/ssl_sample.c

index abe616025a24630323f28c676d8a8b90bbc08013..99d9dbc2508c4a025f8fd262665f4c14f3d546a1 100644 (file)
@@ -393,7 +393,6 @@ static int sample_conv_aes_gcm(const struct arg *arg_p, struct sample *smp, void
 
                aead_tag.data.u.str.data = ret;
                aead_tag.data.type = SMP_T_STR;
-               aead_tag.flags &= ~SMP_F_CONST;
 
                if (!var_set(arg_p[3].data.var.name_hash, arg_p[3].data.var.scope, &aead_tag,
                             (arg_p[3].data.var.scope == SCOPE_PROC) ? VF_COND_IFEXISTS : 0)) {