From 765c57895f152b08d721bfff4296df7f55bafab7 Mon Sep 17 00:00:00 2001 From: liyashuai Date: Wed, 1 Mar 2023 16:50:32 +0800 Subject: [PATCH] replace undefined variable 'type' with 'service->mType' --- src/platform/ESP32/DnssdImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/ESP32/DnssdImpl.h b/src/platform/ESP32/DnssdImpl.h index 2c3ac69e42b5d6..7f84eebb0fcbd9 100644 --- a/src/platform/ESP32/DnssdImpl.h +++ b/src/platform/ESP32/DnssdImpl.h @@ -104,7 +104,7 @@ struct ResolveContext : public GenericContext ResolveContext(DnssdService * service, Inet::InterfaceId ifId, mdns_search_once_t * searchHandle, DnssdResolveCallback cb, void * cbCtx) { - Platform::CopyString(mType, type); + Platform::CopyString(mType, service->mType); Platform::CopyString(mInstanceName, service->mName); mContextType = ContextType::Resolve; mProtocol = service->mProtocol;