From: Nikos Mavrogiannopoulos Date: Thu, 24 May 2001 08:19:49 +0000 (+0000) Subject: sets the resumed_security_parameters to null after X-Git-Tag: gnutls_0_1_4~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7939b67e80ea026b8cdb08d7764823f93cdf8d56;p=thirdparty%2Fgnutls.git sets the resumed_security_parameters to null after initialization --- diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c index 301beb398e..1f177fca63 100644 --- a/lib/gnutls_cipher.c +++ b/lib/gnutls_cipher.c @@ -258,6 +258,9 @@ int _gnutls_connection_state_init(GNUTLS_STATE state) return rc; } else { memcpy( &state->security_parameters, &state->gnutls_internals.resumed_security_parameters, sizeof(SecurityParameters)); + + /* clear the resumed security parameters */ + memset( &state->gnutls_internals.resumed_security_parameters, 0, sizeof(SecurityParameters)); #ifdef HARD_DEBUG fprintf(stderr, "Master Secret: %s\n", _gnutls_bin2hex(state->security_parameters.master_secret, 48)); #endif