Skip to content

Commit 5459406

Browse files
lecarosedsiper
authored andcommitted
in_splunk: continue with the following token if size doesn't match
if the length of token v/s auth header are different, it must skip the token instead of returning unauthorized immediately fixes #10483 Signed-off-by: lecaros <[email protected]>
1 parent d055c50 commit 5459406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/in_splunk/splunk_prot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ static int validate_auth_header_ng(struct flb_splunk *ctx, struct flb_http_reque
10431043
mk_list_foreach_safe(head, tmp, &ctx->auth_tokens) {
10441044
splunk_token = mk_list_entry(head, struct flb_splunk_tokens, _head);
10451045
if (strlen(auth_header) != splunk_token->length) {
1046-
return SPLUNK_AUTH_UNAUTHORIZED;
1046+
continue;
10471047
}
10481048

10491049
if (strncasecmp(splunk_token->header,

0 commit comments

Comments
 (0)