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:11:42 +0000 (18:11 +0100)
commitda84249be6492ccfc5ecad32ac367fd06e9bdbef
tree5634a5d851721679204373f407d2d9fe44c0b065
parent39fc4c17c49d248e0757bac9aa8863d205c7ad12
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)
crypto/asn1/a_digest.c
crypto/asn1/a_sign.c
crypto/asn1/a_verify.c