summaryrefslogtreecommitdiffstats
path: root/ssl/d1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-03 17:14:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-03 17:14:48 +0000
commit2ab42de1ec2303f1ab2e155c260158580c3c57e5 (patch)
tree33bb297d5d444de46c8193c3b20c9e4410791ce0 /ssl/d1_lib.c
parentac2024ccbfb8523538a6378695e8cd77e61d1306 (diff)
PR: 2462
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de> Reviewed by: steve Fix DTLS Retransmission Buffer Bug
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r--ssl/d1_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index 96b220e87c..0e7f5331db 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -330,6 +330,8 @@ void dtls1_stop_timer(SSL *s)
memset(&(s->d1->next_timeout), 0, sizeof(struct timeval));
s->d1->timeout_duration = 1;
BIO_ctrl(SSL_get_rbio(s), BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT, 0, &(s->d1->next_timeout));
+ /* Clear retransmission buffer */
+ dtls1_clear_record_buffer(s);
}
int dtls1_handle_timeout(SSL *s)