Skip to content

Commit ae2ad69

Browse files
committed
in_splunk: Address coderabbitai reviewed comment
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent ba50be0 commit ae2ad69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/in_splunk/splunk_prot.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,5 +1452,10 @@ int splunk_prot_handle_ng(struct flb_http_request *request,
14521452
}
14531453

14541454
flb_sds_destroy(tag);
1455+
1456+
/* Clear per-request remote address to avoid leakage across keep-alive/pipeline */
1457+
context->current_remote_addr = NULL;
1458+
context->current_remote_addr_len = 0;
1459+
14551460
return ret;
14561461
}

0 commit comments

Comments
 (0)