]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/rand/drbg_lib.c
DRBG: fix coverity issues
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 17 Apr 2018 06:07:11 +0000 (08:07 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 17 Apr 2018 15:24:50 +0000 (17:24 +0200)
commit43687d685ffd71fc1cf0ea1079f6d4958dff5026
treef1ee2ba81682e92bb7eeb4bd495a86b23101482e
parent826e154481e93413a79c37cb1bf4da6175a05875
DRBG: fix coverity issues

- drbg_lib.c: Silence coverity warning: the comment preceding the
  RAND_DRBG_instantiate() call explicitely states that the error
  is ignored and explains the reason why.

- drbgtest: Add checks for the return values of RAND_bytes() and
  RAND_priv_bytes() to run_multi_thread_test().

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5976)
crypto/rand/drbg_lib.c
test/drbgtest.c