Check return code when attempting to receive new session ticket message.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 31 Aug 2007 00:28:01 +0000 (00:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 31 Aug 2007 00:28:01 +0000 (00:28 +0000)
ssl/s3_clnt.c

index fc628b5dac249ab12a11207dc5c75e936e8a415a..0b8d89d1acbf57fae5ed95f75ad1510d2cda66e5 100644 (file)
@@ -469,6 +469,7 @@ int ssl3_connect(SSL *s)
                case SSL3_ST_CR_SESSION_TICKET_A:
                case SSL3_ST_CR_SESSION_TICKET_B:
                        ret=ssl3_get_new_session_ticket(s);
+                       if (ret <= 0) goto end;
                        s->state=SSL3_ST_CR_FINISHED_A;
                        s->init_num=0;
                break;