]> git.baikalelectronics.ru Git - uboot.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)
commit86fbc6cdad73165e333f63207e0a9e9f840ce1d6
tree2a4e165c8419497647239939a919bfd9bbee9246
parent6bccc2712c1f5128d81844ed7be9536dc7e9d992
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