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

zbeacon: fix socket leak #2002

Merged
merged 2 commits into from
Mar 16, 2019
Merged

zbeacon: fix socket leak #2002

merged 2 commits into from
Mar 16, 2019

Conversation

rouming
Copy link
Contributor

@rouming rouming commented Mar 16, 2019

zbeacon: fix socket leak and minor check tweaks

rouming added 2 commits March 16, 2019 14:39
It is safe to call close(-1), but since there is a special macro
INVALID_SOCKET which purpose is to mark fds as invalid why not to
use it instead of bogus != 0 check?

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
Do not forget to close ->udpsock_send socket.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
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