summaryrefslogtreecommitdiffstats
path: root/ssl/d1_both.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-05-13 11:52:29 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-05-13 11:52:29 +0000
commit26b82246b18aa93b84f1fb5ab3f53999ffb75a97 (patch)
tree357a75d350b2ed0ab1e94caac991c07a28d75b4b /ssl/d1_both.c
parent277ba3ebd2c3ce9ee525caf466e6d15a9b376625 (diff)
Update from 1.0.0-stable.
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r--ssl/d1_both.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index c4590b872c..9a2cdb2fb1 100644
--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -518,6 +518,7 @@ dtls1_retrieve_buffered_fragment(SSL *s, long max, int *ok)
if ( s->d1->handshake_read_seq == frag->msg_header.seq)
{
+ unsigned long frag_len = frag->msg_header.frag_len;
pqueue_pop(s->d1->buffered_messages);
al=dtls1_preprocess_fragment(s,&frag->msg_header,max);
@@ -535,7 +536,7 @@ dtls1_retrieve_buffered_fragment(SSL *s, long max, int *ok)
if (al==0)
{
*ok = 1;
- return frag->msg_header.frag_len;
+ return frag_len;
}
ssl3_send_alert(s,SSL3_AL_FATAL,al);