Explorar o código

Merge branch 'master' of https://github.com/civetweb/civetweb

bel2125 %!s(int64=4) %!d(string=hai) anos
pai
achega
cb38d861f8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/mod_mbedtls.inl

+ 1 - 0
src/mod_mbedtls.inl

@@ -162,6 +162,7 @@ mbed_ssl_accept(mbedtls_ssl_context **ssl,
 	rc = mbed_ssl_handshake(*ssl);
 	if (rc != 0) {
 		DEBUG_TRACE("TLS handshake failed (%i)", rc);
+		mbedtls_ssl_free(*ssl);
 		mg_free(*ssl);
 		*ssl = NULL;
 		return -1;