summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_int.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-08-22 16:06:24 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-08-22 16:06:24 +0000
commitcae0ae2e4b9a00c9a67e777cff3ee1b0a23474e9 (patch)
treed9fa827976d68be369428231c310cf0bff0d1583 /crypto/asn1/a_int.c
parent469938cb4012472d3d99ed7ead258aef3a5bc029 (diff)
Fix ASN1_INTEGER_to_BN properly this time...
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 0db747eddf..6f0413f885 100644
--- a/crypto/asn1/a_int.c
+++ b/crypto/asn1/a_int.c
@@ -465,7 +465,7 @@ BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn)
if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
ASN1err(ASN1_F_ASN1_INTEGER_TO_BN,ASN1_R_BN_LIB);
- if(ai->type == V_ASN1_NEG_INTEGER) ret->neg = 1;
+ else if(ai->type == V_ASN1_NEG_INTEGER) ret->neg = 1;
return(ret);
}