mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 23:21:04 +00:00
ssl_init() left a dirty in_ctr pointer on failed allocation of out_ctr
This commit is contained in:
parent
a9f86e03ed
commit
b000f82d76
|
@ -33,6 +33,8 @@ Bugfix
|
|||
* Fixed CMake symlinking on out-of-source builds
|
||||
* Bignum's MIPS-32 assembly was used on MIPS-64, causing chaos. (Found by
|
||||
Alex Wilson.)
|
||||
* ssl_init() was leaving a dirty pointer in ssl_context if malloc of
|
||||
out_ctr failed
|
||||
|
||||
= Version 1.2.10 released 2013-10-07
|
||||
Changes
|
||||
|
|
|
@ -3051,6 +3051,7 @@ int ssl_init( ssl_context *ssl )
|
|||
{
|
||||
SSL_DEBUG_MSG( 1, ( "malloc(%d bytes) failed", len ) );
|
||||
free( ssl-> in_ctr );
|
||||
ssl->in_ctr = NULL;
|
||||
return( POLARSSL_ERR_SSL_MALLOC_FAILED );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue