miclam wrote on Friday, August 11, 2017:
Hello,
I’m finally trying out the DNS client of +TCP_multi. I noted that in prvGetHostByName() the method FreeRTOS_GetAddressConfiguration gets called with a NULL EndPoint (Line 570 in FreeRTOS_DNS.c):
FreeRTOS_GetAddressConfiguration( NULL, NULL, NULL, NULL, &ulIPAddress );
Richard stated out it should not be NULL: /*RB First parameter to FreeRTOS_GetAddressConfiguration() should not be NULL! */
As I only have one EndPoint I changed it to:
FreeRTOS_GetAddressConfiguration( FreeRTOS_FirstEndPoint( NULL ), NULL, NULL, NULL, &ulIPAddress );
But I’m not sure that this is an appropriate solution for multiple endpoints. Probably FreeRTOS_FindDefaultEndPoint() is a better choice.
Regards, Michael