diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 15:15:20 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-06-22 15:15:20 +0000 |
commit | 102bcbce8dcfb51b7b39c0209c810e6ee10f6cde (patch) | |
tree | e7c0f8f7281c5b4ac2730bff39df6de07aa8d4e6 /crypto/asn1 | |
parent | 8655de423dc3dfa54e20df930a5204b132edbaa9 (diff) |
correctly encode OIDs near 2^32
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/a_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_object.c b/crypto/asn1/a_object.c index 365e4673a9..d24ab92da0 100644 --- a/crypto/asn1/a_object.c +++ b/crypto/asn1/a_object.c @@ -139,7 +139,7 @@ int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num) ASN1err(ASN1_F_A2D_ASN1_OBJECT,ASN1_R_INVALID_DIGIT); goto err; } - if (!use_bn && l > (ULONG_MAX / 10L)) + if (!use_bn && l >= (ULONG_MAX / 10L)) { use_bn = 1; if (!bl) |