Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
ec4b0895
Commit
ec4b0895
authored
May 12, 2015
by
Manuel Pégourié-Gonnard
Browse files
Fix issue in ssl_free() vs ssl_config_free()
Just an overlook from moving things recently
parent
49f5eb9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/ssl_tls.c
View file @
ec4b0895
...
...
@@ -6570,14 +6570,6 @@ void mbedtls_ssl_free( mbedtls_ssl_context *ssl )
mbedtls_free
(
ssl
->
session
);
}
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
if
(
ssl
->
conf
->
ticket_keys
)
{
ssl_ticket_keys_free
(
ssl
->
conf
->
ticket_keys
);
mbedtls_free
(
ssl
->
conf
->
ticket_keys
);
}
#endif
#if defined(MBEDTLS_X509_CRT_PARSE_C)
if
(
ssl
->
hostname
!=
NULL
)
{
...
...
@@ -6733,6 +6725,14 @@ void mbedtls_ssl_config_free( mbedtls_ssl_config *conf )
}
#endif
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
if
(
conf
->
ticket_keys
)
{
ssl_ticket_keys_free
(
conf
->
ticket_keys
);
mbedtls_free
(
conf
->
ticket_keys
);
}
#endif
#if defined(MBEDTLS_X509_CRT_PARSE_C)
ssl_key_cert_free
(
conf
->
key_cert
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment