From c6230c4f2862af07e8b6398045dfe3b838488829 Mon Sep 17 00:00:00 2001 From: Daniel Nicoara Date: Fri, 27 May 2022 09:06:11 -0400 Subject: [PATCH] Fix ESP32 Dnssd compile error (#18869) ../../../../../../config/esp32/third_party/connectedhomeip/src/platform/ESP32/DnssdImpl.cpp: In function 'CHIP_ERROR chip::Dnssd::OnResolveQuerySrvDone(chip::Dnssd::ResolveContext*)': ../../../../../../config/esp32/third_party/connectedhomeip/src/platform/ESP32/DnssdImpl.cpp:376:65: error: invalid types 'size_t {aka unsigned int}[size_t {aka unsigned int}]' for array subscript GetIPAddress(ctx->mAddressCount[addressIndex], addr); --- src/platform/ESP32/DnssdImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/ESP32/DnssdImpl.cpp b/src/platform/ESP32/DnssdImpl.cpp index 0c55ecfa5c0a6b..0b3833a1d8f5c7 100644 --- a/src/platform/ESP32/DnssdImpl.cpp +++ b/src/platform/ESP32/DnssdImpl.cpp @@ -373,7 +373,7 @@ CHIP_ERROR OnResolveQuerySrvDone(ResolveContext * ctx) auto * addr = ctx->mResult->addr; while (addr) { - GetIPAddress(ctx->mAddressCount[addressIndex], addr); + GetIPAddress(ctx->mAddresses[addressIndex], addr); addressIndex++; addr = addr->next; }