aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_int.c
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2016-11-10 01:22:17 +0100
committerRich Salz <rsalz@openssl.org>2017-03-28 16:16:49 -0400
commita6ac1ed686346d2164c16446624c973e51d3ae92 (patch)
treeb2d4baf2a8656946221fc81f64109510ddda3053 /crypto/asn1/a_int.c
parentcbe952418376a25acd872db4281a0b09735001f1 (diff)
downloadopenssl-a6ac1ed686346d2164c16446624c973e51d3ae92.tar.gz
Fix 0 -> NULL, indentation
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3066)
Diffstat (limited to 'crypto/asn1/a_int.c')
-rw-r--r--crypto/asn1/a_int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_int.c b/crypto/asn1/a_int.c
index e0bcd6e502..c40c7faed2 100644
--- a/crypto/asn1/a_int.c
+++ b/crypto/asn1/a_int.c
@@ -522,7 +522,7 @@ static BIGNUM *asn1_string_to_bn(const ASN1_INTEGER *ai, BIGNUM *bn,
}
ret = BN_bin2bn(ai->data, ai->length, bn);
- if (ret == 0) {
+ if (ret == NULL) {
ASN1err(ASN1_F_ASN1_STRING_TO_BN, ASN1_R_BN_LIB);
return NULL;
}