提交 f96ff4e9 编写于 作者: B Bernd Edlinger

Fixed a crash in error handing of rand_drbg_new

Reviewed-by: NMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: NKurt Roeckx <kurt@roeckx.be>
Reviewed-by: NBen Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/5646)
上级 d288d7fc
......@@ -218,7 +218,7 @@ static RAND_DRBG *rand_drbg_new(int secure,
if (drbg == NULL) {
RANDerr(RAND_F_RAND_DRBG_NEW, ERR_R_MALLOC_FAILURE);
goto err;
return NULL;
}
drbg->secure = secure && CRYPTO_secure_allocated(drbg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册