]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
reset sliding window size on new epochs
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 14 Feb 2012 18:39:07 +0000 (19:39 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 14 Feb 2012 18:39:07 +0000 (19:39 +0100)
lib/gnutls_constate.c

index 83e32cea6d2541ab7f4d6b11d191459c17ff46ab..deac62d6420a973841cfb35f517f77654ab44edc 100644 (file)
@@ -444,6 +444,8 @@ _gnutls_epoch_set_keys (gnutls_session_t session, uint16_t epoch)
   if (ret < 0)
     return gnutls_assert_val (ret);
 
+  params->record_sw_size = 0;
+
   _gnutls_record_log ("REC[%p]: Epoch #%u ready\n", session, params->epoch);
 
   params->initialized = 1;