Closed jongsung7707 closed 3 years ago
This patch is for fixing bugs in MQTT that I found when MQTT_OVER_SSL is enabled.
getsockopt
mbedtls_ssl_free
free
F_GETFL
This patch is for fixing bugs in MQTT that I found when MQTT_OVER_SSL is enabled.
getsockopt
call clears the error, it should be called once when it is needed.mbedtls_ssl_free
has already released resources, butfree
is called again and it caused a fault.F_GETFL
is used and put it as 0.