diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-08-22 16:06:24 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-08-22 16:06:24 +0000 |
commit | cae0ae2e4b9a00c9a67e777cff3ee1b0a23474e9 (patch) | |
tree | d9fa827976d68be369428231c310cf0bff0d1583 /crypto/asn1/a_enum.c | |
parent | 469938cb4012472d3d99ed7ead258aef3a5bc029 (diff) |
Fix ASN1_INTEGER_to_BN properly this time...
Diffstat (limited to 'crypto/asn1/a_enum.c')
-rw-r--r-- | crypto/asn1/a_enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_enum.c b/crypto/asn1/a_enum.c index 53b30f2b56..afd8e9ab37 100644 --- a/crypto/asn1/a_enum.c +++ b/crypto/asn1/a_enum.c @@ -219,6 +219,6 @@ BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) ASN1err(ASN1_F_ASN1_ENUMERATED_TO_BN,ASN1_R_BN_LIB); - if(ai->type == V_ASN1_NEG_ENUMERATED) bn->neg = 1; + else if(ai->type == V_ASN1_NEG_ENUMERATED) ret->neg = 1; return(ret); } |