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

- Linux socket: Fix uninitialized variable use in Socket_connect() (#57) #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

S-trace
Copy link

@S-trace S-trace commented Nov 18, 2019

getsockopt() may return -1, set ERRNO = EINPROGRESS (115: Operation now in progress)
and not initialze so_error on Kubuntu 19.10 AMD64 with kernel 5.3.0-23-generic

So, initialize the value to -1, and add check for getsockopt() result
(and add log message if DEBUG_SOCKET is set).

Fixes #57

getsockopt() may return -1, set ERRNO = EINPROGRESS (115: Operation now in progress)
and not initialze so_error on Kubuntu 19.10 AMD64 with kernel 5.3.0-23-generic

So, initialize the value to -1, and add check for getsockopt() result
(and add log message if DEBUG_SOCKET is set).

Fixes #57
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.

Conditional jump or move depends on uninitialised value(s) in Socket_connect
1 participant