Skip to content

esp32 crash when no resolve #47

Description

@alonmuroch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions