Typo: set i to -1 before goto.
authorSami Farin <hvtaifwkbgefbaei@gmail.com>
Mon, 2 Jun 2014 11:24:19 +0000 (12:24 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 2 Jun 2014 12:53:54 +0000 (13:53 +0100)
PR#3302
(cherry picked from commit 9717f01951f976f76dd40a38d9fc7307057fa4c4)

ssl/d1_both.c

index d8bcd58df2b14818b8237bb70c979d62c7df5747..2c06fc28f75206cf786c9b8351392ccd901cb496 100644 (file)
@@ -679,8 +679,8 @@ dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok)
                item = pitem_new(seq64be, frag);
                if (item == NULL)
                        {
-                       goto err;
                        i = -1;
+                       goto err;
                        }
 
                pqueue_insert(s->d1->buffered_messages, item);