Skip to content

Commit

Permalink
in_forward: fixed incorrect digest length usage in authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Nov 4, 2024
1 parent 65863a1 commit 5226892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/in_forward/fw_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5226892

Please sign in to comment.