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

Avoid multiple inet_ntoa calls in INFO message #38

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

Conversation

perlsaiyan
Copy link

@perlsaiyan perlsaiyan commented Jun 7, 2024

Hey troglobit, first off, thanks for the awesome little utility, I use it all the time. However, due to the two inet_ntoa calls (which return a pointer to the same string buffer) the INFO message "Connecting x:port to y:port" is wrong. See stackoverflow .

This patch grabs the string for one of the addresses in advance so the message is correct. Forgive me if I didn't handle it correctly - C isn't my best language. It closes #39 .

Vänliga hälsningar
perlsaiyan

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.

Bad INFO message in logs
1 participant