]> git.dujemihanovic.xyz Git - u-boot.git/commit
rsa: check that pointer checksum isn't NULL before using it
authorPhilippe Reynes <philippe.reynes@softathome.com>
Tue, 19 Mar 2019 09:55:40 +0000 (10:55 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 25 Mar 2019 15:44:12 +0000 (11:44 -0400)
commitb02f2e79c6272d97bf0bd191e6ec8e748a39ad58
tree2a4e165c8419497647239939a919bfd9bbee9246
parentcfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c
rsa: check that pointer checksum isn't NULL before using it

The pointer checksum were used before checking that it
isn't NULL. We move the code that use it after the check.

Reported-by: Coverity (CID: 185835)
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-verify.c