mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 03:05:44 +01:00
ssl_init() left a dirty in_ctr pointer on failed allocation of out_ctr
This commit is contained in:
parent
2eea29238c
commit
3d6504a935
@ -43,6 +43,8 @@ Bugfix
|
|||||||
client certificate.
|
client certificate.
|
||||||
* ssl_srv was leaking memory when client presented a timed out ticket
|
* ssl_srv was leaking memory when client presented a timed out ticket
|
||||||
containing a client certificate
|
containing a client certificate
|
||||||
|
* ssl_init() was leaving a dirty pointer in ssl_context if malloc of
|
||||||
|
out_ctr failed
|
||||||
|
|
||||||
= PolarSSL 1.3.4 released on 2014-01-27
|
= PolarSSL 1.3.4 released on 2014-01-27
|
||||||
Features
|
Features
|
||||||
|
@ -3427,7 +3427,8 @@ int ssl_init( ssl_context *ssl )
|
|||||||
if( ssl->out_ctr == NULL )
|
if( ssl->out_ctr == NULL )
|
||||||
{
|
{
|
||||||
SSL_DEBUG_MSG( 1, ( "malloc(%d bytes) failed", len ) );
|
SSL_DEBUG_MSG( 1, ( "malloc(%d bytes) failed", len ) );
|
||||||
polarssl_free( ssl-> in_ctr );
|
polarssl_free( ssl->in_ctr );
|
||||||
|
ssl->in_ctr = NULL;
|
||||||
return( POLARSSL_ERR_SSL_MALLOC_FAILED );
|
return( POLARSSL_ERR_SSL_MALLOC_FAILED );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user