Skip to content

connect: zero variable on stack to silence valgrind complaint#6289

Closed
egtvedt wants to merge 1 commit into
curl:masterfrom
egtvedt:fix-lib-connect-init-to-zero
Closed

connect: zero variable on stack to silence valgrind complaint#6289
egtvedt wants to merge 1 commit into
curl:masterfrom
egtvedt:fix-lib-connect-init-to-zero

Conversation

@egtvedt

@egtvedt egtvedt commented Dec 9, 2020

Copy link
Copy Markdown

Valgrind will complain that ssrem buffer usage if not explicit
initialized, hence initialize it to zero.

This completes the change intially started in commit 2c0d721 ('ftp:
retry getpeername for FTP with TCP_FASTOPEN') where the ssloc buffer has
a similar memset to zero.

Signed-off-by: Hans-Christian Noren Egtvedt hegtvedt@cisco.com

Valgrind will complain that ssrem buffer usage if not explicit
initialized, hence initialize it to zero.

This completes the change intially started in commit 2c0d721 ('ftp:
retry getpeername for FTP with TCP_FASTOPEN') where the ssloc buffer has
a similar memset to zero.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
@bagder

bagder commented Dec 9, 2020

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in 8a10aba Dec 9, 2020
@egtvedt egtvedt deleted the fix-lib-connect-init-to-zero branch February 2, 2022 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants