From 522689236ed8897152d3ed2f25c9b462b9552be8 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Mon, 4 Nov 2024 14:02:42 +0100 Subject: [PATCH] in_forward: fixed incorrect digest length usage in authentication Signed-off-by: Leonardo Alminana --- plugins/in_forward/fw_prot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/in_forward/fw_prot.c b/plugins/in_forward/fw_prot.c index c080ace6749..a118da599ce 100644 --- a/plugins/in_forward/fw_prot.c +++ b/plugins/in_forward/fw_prot.c @@ -495,6 +495,10 @@ static int user_authentication(struct flb_input_instance *ins, continue; } + if (password_digest_len != 128) { + continue; + } + userauth_digest = flb_calloc(128, sizeof(char)); if (flb_secure_forward_password_digest(ins, conn,