diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_lib.c')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_lib.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c index 2b952abae6..46de52a050 100644 --- a/src/lib/libcrypto/asn1/asn1_lib.c +++ b/src/lib/libcrypto/asn1/asn1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_lib.c,v 1.32 2014/07/11 14:49:12 miod Exp $ */ | 1 | /* $OpenBSD: asn1_lib.c,v 1.33 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -140,12 +140,6 @@ ASN1_get_object(const unsigned char **pp, long *plength, int *ptag, | |||
140 | if (inf && !(ret & V_ASN1_CONSTRUCTED)) | 140 | if (inf && !(ret & V_ASN1_CONSTRUCTED)) |
141 | goto err; | 141 | goto err; |
142 | 142 | ||
143 | #if 0 | ||
144 | fprintf(stderr, "p=%d + *plength=%ld > omax=%ld + *pp=%d (%d > %d)\n", | ||
145 | (int)p, *plength, omax, (int)*pp, (int)(p+ *plength), | ||
146 | (int)(omax+ *pp)); | ||
147 | |||
148 | #endif | ||
149 | if (*plength > (omax - (p - *pp))) { | 143 | if (*plength > (omax - (p - *pp))) { |
150 | ASN1err(ASN1_F_ASN1_GET_OBJECT, ASN1_R_TOO_LONG); | 144 | ASN1err(ASN1_F_ASN1_GET_OBJECT, ASN1_R_TOO_LONG); |
151 | /* Set this so that even if things are not long enough | 145 | /* Set this so that even if things are not long enough |