Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/upstream: flb_upstream_conn.ka_count should be initialized #1783

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

bluebike
Copy link
Contributor

@bluebike bluebike commented Dec 2, 2019

flb_upstream_conn.ka_count is not initialized and can get
random values.

This can break out_forward when it get wrong information
that tells that connection is reused, but it's not and
out_forward thinks that handshake is already done.

flb_calloc could also be used to zero init whole flb_upstream_conn
in allocation.

Signed-off-by: Jukka Pihl [email protected]

flb_upstream_conn.ka_count is not initialized and can get
random values.

This can break out_forward when it get wrong information
that tells that connection is reused, but it's not and
out_forward thinks that handshake is already done.

Signed-off-by: Jukka Pihl <[email protected]>
@bluebike bluebike changed the title core/upstream: flb_upstream_conn.ka_count should not initialized core/upstream: flb_upstream_conn.ka_count should be initialized Dec 2, 2019
@edsiper edsiper merged commit 5bb6bba into fluent:master Dec 2, 2019
@edsiper
Copy link
Member

edsiper commented Dec 2, 2019

thanks

@bluebike bluebike deleted the upstream_ka_count_initialization branch December 2, 2019 20:54
edsiper pushed a commit that referenced this pull request Dec 16, 2019
flb_upstream_conn.ka_count is not initialized and can get
random values.

This can break out_forward when it get wrong information
that tells that connection is reused, but it's not and
out_forward thinks that handshake is already done.

Signed-off-by: Jukka Pihl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants