http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1379

--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -530,13 +530,14 @@ dtls1_retrieve_buffered_fragment(SSL *s,
 				frag->fragment,frag->msg_header.frag_len);
 			}
 
+		unsigned long frag_len = frag->msg_header.frag_len;
 		dtls1_hm_fragment_free(frag);
 		pitem_free(item);
 
 		if (al==0)
 			{
 			*ok = 1;
-			return frag->msg_header.frag_len;
+			return frag_len;
 			}
 
 		ssl3_send_alert(s,SSL3_AL_FATAL,al);
