Permalink
Browse files

PR: 1923

Submitted by: Daniel Mentz <daniel.m@sent.com>, Robin Seggelmann <seggelmann@fh-muenster.de>
Approved by: steve@openssl.org

Don't access freed data structure.
  • Loading branch information...
snhenson committed May 13, 2009
1 parent 756d207 commit 561cbe567846a376153bea7f1f2d061e78029c2d
Showing with 2 additions and 1 deletion.
  1. +2 −1 ssl/d1_both.c
@@ -519,6 +519,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);
@@ -536,7 +537,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);

0 comments on commit 561cbe5

Please sign in to comment.