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

[FIX] MDNS queryService emtpy buffer before query service #3076

Closed
wants to merge 1 commit into from

Conversation

kdsoo
Copy link

@kdsoo kdsoo commented Mar 23, 2017

Fix previous data left to in buffer for queryService()
In case of queried service doesn't exist on the net, there was a problem of queryService returning previously queried results.

Signed-off-by: Dongsoo Kim dongsoo.kim@gmail.com

Fix previous data left to in buffer for queryService()
In case of queried service doesn't exist on the net, there was a problem of queryService returning previously queried results.

Signed-off-by: Dongsoo Kim <dongsoo.kim@gmail.com>
@@ -283,7 +286,9 @@ int MDNSResponder::queryService(char *service, char *proto) {
#ifdef MDNS_DEBUG_TX
Serial.printf("queryService %s %s\n", service, proto);
#endif


_initVar();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause a mem leak on _query

@devyte
Copy link
Collaborator

devyte commented Dec 5, 2018

Closing in favor of #5384 .

@devyte devyte closed this Dec 5, 2018
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