You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for bringing this to our attention. You are absolutely correct. This is a bug in how the #ifs are used.
The issue here is that the function DNS_ReadNameField only gets invoked when the DNS cache is enabled. But, it gets compiled with or without DNS cache being enabled. We should add a #if ( ipconfigUSE_DNS_CACHE == 1 ) around the function declaration and definition. We will raise a PR to fix it shortly.
We're closing this issue as the patch has been successfully merged. If you encounter any further related issues, please don't hesitate to reopen this thread.
Describe the bug
Removes the
pcName
field fromParseSet_t
:FreeRTOS-Plus-TCP/source/include/FreeRTOS_DNS_Globals.h
Lines 192 to 196 in 57c1967
But
pcName
is still used byDNS_ReadNameField
:FreeRTOS-Plus-TCP/source/FreeRTOS_DNS_Parser.c
Line 104 in 57c1967
Target
Host
To Reproduce
ipconfigUSE_DNS_CACHE
to0
Expected behavior
FreeRTOS-Plus-TCP should compile with the DNS cache disabled.
Additional context
I'm on version 4.2.2 but can reproduce on
main
too.The text was updated successfully, but these errors were encountered: