drbg_lib: avoid NULL pointer dereference in drbg_add
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 28 Oct 2018 12:46:35 +0000 (13:46 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 28 Oct 2018 18:21:12 +0000 (19:21 +0100)
commitd2953e5e7d8be6e83b35683f41bc0ae971782d16
tree07ad33ef90dd928b4734ed40b505ca817b924324
parent54dea92f0829584e194d1a930a309df95646f70d
drbg_lib: avoid NULL pointer dereference in drbg_add

Found by Coverity Scan

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7511)

(cherry picked from commit 59f90557dd6e35cf72ac72016609d759ac78fcb9)
crypto/rand/drbg_lib.c