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

esp32 crash when no resolve #47

Open
alonmuroch opened this issue Dec 31, 2024 · 0 comments
Open

esp32 crash when no resolve #47

alonmuroch opened this issue Dec 31, 2024 · 0 comments

Comments

@alonmuroch
Copy link

alonmuroch commented Dec 31, 2024

How to reproduce:

  • esp32-wroom-dev
  • W5500 ethernet

When resolve times out a crash happens on MDNS.cpp:1429 due to ipAddr == NULL.
It's NULL because the function is called by MDNS.cpp:1429:1071

How to solve:
change MDNS:1071 to

if (i == 0) {
               byte* noneAddress = new byte[4]{0, 0, 0, };
               this->_finishedResolvingName((char*)this->_resolveNames[0], noneAddress);
            }

{255, 255, 255, 255} is equal to INADDR_NONE

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

1 participant