- MMS client: fixed bug in TLS connection handling

pull/269/head
Michael Zillgith 5 years ago
parent 34ae9ff77a
commit e86c81309b

@ -283,8 +283,10 @@ releaseSocket(IsoClientConnection self)
if (self->socket) { if (self->socket) {
#if (CONFIG_MMS_SUPPORT_TLS == 1) #if (CONFIG_MMS_SUPPORT_TLS == 1)
if (self->cotpConnection->tlsSocket) if (self->cotpConnection->tlsSocket) {
TLSSocket_close(self->cotpConnection->tlsSocket); TLSSocket_close(self->cotpConnection->tlsSocket);
self->cotpConnection->tlsSocket = NULL;
}
#endif #endif
Socket_destroy(self->socket); Socket_destroy(self->socket);

Loading…
Cancel
Save