Skip to content

Commit

Permalink
in_forward: fixed incorrect shared key length 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 652fa29 commit 3bd185b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/in_forward/fw_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static int check_ping(struct flb_input_instance *ins,
return -1;
}

if (strncmp(serverside, shared_key_digest, shared_key_digest_len) != 0) {
if (strncmp(serverside, shared_key_digest, 128) != 0) {
flb_plg_error(ins, "shared_key mismatch");
flb_free(serverside);

Expand Down

0 comments on commit 3bd185b

Please sign in to comment.