mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
MDNS MultiInterface (#7636)
* MDNS MultiInterface * Move strlcat & strlcpy to __cplusplus * Add LwipIntfCB.cpp to Makefile
This commit is contained in:
@ -2408,12 +2408,25 @@ bool MDNSResponder::stcMDNSSendParameter::clear(void)
|
||||
delete m_pQuestions;
|
||||
m_pQuestions = pNext;
|
||||
}
|
||||
|
||||
return clearCachedNames();;
|
||||
}
|
||||
/*
|
||||
MDNSResponder::stcMDNSSendParameter::clear cached names
|
||||
*/
|
||||
bool MDNSResponder::stcMDNSSendParameter::clearCachedNames(void)
|
||||
{
|
||||
|
||||
m_u16Offset = 0;
|
||||
|
||||
while (m_pDomainCacheItems)
|
||||
{
|
||||
stcDomainCacheItem* pNext = m_pDomainCacheItems->m_pNext;
|
||||
delete m_pDomainCacheItems;
|
||||
m_pDomainCacheItems = pNext;
|
||||
}
|
||||
m_pDomainCacheItems = nullptr;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user