Fix a bundle of mischecks of return values
authorPaul Yang <kaishen.yy@antfin.com>
Mon, 30 Sep 2019 06:05:31 +0000 (14:05 +0800)
committerPaul Yang <kaishen.yy@antfin.com>
Mon, 30 Sep 2019 09:18:17 +0000 (17:18 +0800)
commit7e3ae24832e0705583b1471febf3dc0eb1cc021f
treee67320014f3adacefb760d3fe801b9e0593d2698
parentdf0822688fc3432cf800cdc07c7f9016ea201170
Fix a bundle of mischecks of return values

Several EVP_PKEY_xxxx functions return 0 and a negative value for
indicating errors. Some places call these functions with a zero return
value check only, which misses the check for the negative scenarios.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10055)
apps/speed.c
crypto/cms/cms_kari.c