浏览代码

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?


正在加载...
取消
保存