Fix reusing session more than once

This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-02 15:34:52 +02:00 committed by Paul Bakker
parent cf2e97eae2
commit 06650f6a37
3 changed files with 60 additions and 38 deletions

View file

@ -871,6 +871,7 @@ exit:
x509_free( &cacert );
rsa_free( &rsa );
#endif
ssl_session_free( &saved_session );
ssl_free( &ssl );
memset( &ssl, 0, sizeof( ssl ) );