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

socket leak #38

Closed
tianjie opened this issue Mar 18, 2022 · 1 comment
Closed

socket leak #38

tianjie opened this issue Mar 18, 2022 · 1 comment

Comments

@tianjie
Copy link

tianjie commented Mar 18, 2022

I used sole in my program to generate uuid , and found a sock leak in this line code;
https://github.com/r-lyeh-archived/sole/blob/master/sole.hpp#L604

It could be fixed by using this line code.
if (std::strcmp("lo", ifap->ifa_name) == 0) { close(s); continue;}

Thanks for your work.

@r-lyeh r-lyeh closed this as completed in 358466a Apr 9, 2022
@r-lyeh
Copy link
Collaborator

r-lyeh commented Apr 9, 2022

Good call! Ty!

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

No branches or pull requests

2 participants