Update from 1.0.0-stable
authorDr. Stephen Henson <steve@openssl.org>
Wed, 1 Jul 2009 11:32:40 +0000 (11:32 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 1 Jul 2009 11:32:40 +0000 (11:32 +0000)
ssl/d1_pkt.c

index d88ef19fcde255831f0f5207c03fdf0446f8eb1c..bc75b537fbd948ce6ba7505948440a89cec98103 100644 (file)
@@ -581,6 +581,7 @@ again:
                /* this packet contained a partial record, dump it */
                if ( n != i)
                        {
+                       rr->length = 0;
                        s->packet_length = 0;
                        goto again;
                        }
@@ -594,6 +595,7 @@ again:
        bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch);
        if ( bitmap == NULL)
         {
+       rr->length = 0;
         s->packet_length = 0;  /* dump this record */
         goto again;   /* get another record */
                }
@@ -617,6 +619,7 @@ again:
         {
         dtls1_record_bitmap_update(s, bitmap);
         dtls1_buffer_record(s, &(s->d1->unprocessed_rcds), rr->seq_num);
+       rr->length = 0;
         s->packet_length = 0;
         goto again;
         }