소스 검색

Fix CVE-2014-3470

Check session_cert is not NULL before dereferencing it.

(Imported from upstream's e5f706590c)
kris/onging/CECPQ3_patch15
Adam Langley 10 년 전
부모
커밋
d06eddd15c
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      ssl/s3_clnt.c

+ 7
- 0
ssl/s3_clnt.c 파일 보기

@@ -2545,6 +2545,13 @@ int ssl3_send_client_key_exchange(SSL *s)
unsigned int i;
#endif

if (s->session->sess_cert == NULL)
{
ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_UNEXPECTED_MESSAGE);
OPENSSL_PUT_ERROR(SSL, ssl3_send_client_key_exchange, SSL_R_UNEXPECTED_MESSAGE);
goto err;
}

/* Did we send out the client's
* ECDH share for use in premaster
* computation as part of client certificate?


불러오는 중...
취소
저장