diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2015-02-18 09:32:06 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2015-02-18 09:32:06 +0000 |
commit | b199095ec9e3ec6792d75ebcfda488e381a5aad6 (patch) | |
tree | 836485de2f077d5f177c52a89a174358fa565fc6 | |
parent | 915fc15ccf54e44cfdcbe7726e4e507e35840cdf (diff) | |
download | mbedtls-b199095ec9e3ec6792d75ebcfda488e381a5aad6.zip mbedtls-b199095ec9e3ec6792d75ebcfda488e381a5aad6.tar.gz mbedtls-b199095ec9e3ec6792d75ebcfda488e381a5aad6.tar.bz2 |
Finish fixing memleak in ssl_server2 arg parsing
Fixes omission in 5c078e1
-rw-r--r-- | programs/ssl/ssl_server2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index d1b76ac..30814eb 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -587,7 +587,7 @@ psk_entry *psk_parse( char *psk_string ) while( p <= end ) { if( ( new = polarssl_malloc( sizeof( psk_entry ) ) ) == NULL ) - return( NULL ); + goto error; memset( new, 0, sizeof( psk_entry ) ); |