Skip to content

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