PR: 1993
authorDr. Stephen Henson <steve@openssl.org>
Fri, 24 Jul 2009 11:52:55 +0000 (11:52 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 24 Jul 2009 11:52:55 +0000 (11:52 +0000)
Fix from 0.9.8-stable.

ssl/d1_clnt.c
ssl/d1_pkt.c

index dcca4db..0274745 100644 (file)
@@ -223,6 +223,8 @@ int dtls1_connect(SSL *s)
                        s->init_num=0;
                        /* mark client_random uninitialized */
                        memset(s->s3->client_random,0,sizeof(s->s3->client_random));
+                       s->d1->send_cookie = 0;
+                       s->hit = 0;
                        break;
 
                case SSL3_ST_CW_CLNT_HELLO_A:
index b9909b4..d9a8114 100644 (file)
@@ -775,7 +775,7 @@ start:
        /* Check for timeout */
        if (dtls1_is_timer_expired(s))
                {
-               if (dtls1_read_failed(s, -1) > 0);
+               if (dtls1_read_failed(s, -1) > 0)
                        goto start;
                }