diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-05-25 12:24:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-05-25 12:24:03 +0000 |
commit | fa657871ed00659e7665a8b98af5f44c1189043d (patch) | |
tree | abd9b7fb0c7259670b386184d73c2c459f6b13b4 /ssl | |
parent | 09dac71a45e0ad7356daf8b3900ce0248e630d08 (diff) |
PR: 2505
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Reviewed by: steve
Fix DTLS session resumption timer bug.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/d1_clnt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index 0aa77ee51d..4001a5a673 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -403,7 +403,8 @@ int dtls1_connect(SSL *s) case SSL3_ST_CW_CHANGE_A: case SSL3_ST_CW_CHANGE_B: - dtls1_start_timer(s); + if (!s->hit) + dtls1_start_timer(s); ret=dtls1_send_change_cipher_spec(s, SSL3_ST_CW_CHANGE_A,SSL3_ST_CW_CHANGE_B); if (ret <= 0) goto end; @@ -438,7 +439,8 @@ int dtls1_connect(SSL *s) case SSL3_ST_CW_FINISHED_A: case SSL3_ST_CW_FINISHED_B: - dtls1_start_timer(s); + if (!s->hit) + dtls1_start_timer(s); ret=dtls1_send_finished(s, SSL3_ST_CW_FINISHED_A,SSL3_ST_CW_FINISHED_B, s->method->ssl3_enc->client_finished_label, |