FreeRTOS / iot-reference-stm32u5

MIT License
46 stars 29 forks source link

fix: mbedtls_transport now prints a valid IP #76

Closed cookpate closed 2 years ago

cookpate commented 2 years ago

A bogus IP was printed to the console while I was troubleshooting connectivity.

inet_ntoa_r requires a valid IP address in order to format a string. A pointer was instead given to the sockaddr_in struct, which contains the family and port at the beginning, not the address.

The IPv6 portion of this fix is untested.