Skip to content

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