From: Dr. Stephen Henson Date: Fri, 31 Aug 2007 00:28:01 +0000 (+0000) Subject: Check return code when attempting to receive new session ticket message. X-Git-Tag: OpenSSL_0_9_8k^2~725 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=446124a25864542d026883160fe1e0f40475809e;p=oweals%2Fopenssl.git Check return code when attempting to receive new session ticket message. --- diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index fc628b5dac..0b8d89d1ac 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -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;