Coverity fix in some crypto/asn1 code
authorFdaSilvaYY <fdasilvayy@gmail.com>
Sun, 30 Sep 2018 20:39:38 +0000 (22:39 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sat, 22 Dec 2018 17:13:56 +0000 (18:13 +0100)
commit7d550561e3f58c1810486d962732e9c3476487e2
tree903f977d2d340b262988f067ab436c620da83c28
parent9318545c2859d89c4496240649ab2f322dbd3ad8
Coverity fix in some crypto/asn1 code

Call to i2d method returns an int value.

Fix:
CID 1338183 (#1 of 1): Improper use of negative value (NEGATIVE_RETURNS)
CID 1371691 (#1 of 1): Improper use of negative value (NEGATIVE_RETURNS)
CID 1371692 (#1 of 1): Improper use of negative value (NEGATIVE_RETURNS)

[extended tests]

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7359)

(cherry picked from commit da84249be6492ccfc5ecad32ac367fd06e9bdbef)
crypto/asn1/a_digest.c
crypto/asn1/a_sign.c
crypto/asn1/a_verify.c