diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_par.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_par.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c index c6f95c42ab..f5e3a8b529 100644 --- a/src/lib/libcrypto/asn1/asn1_par.c +++ b/src/lib/libcrypto/asn1/asn1_par.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1_par.c,v 1.19 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: asn1_par.c,v 1.20 2014/07/12 16:03:36 miod 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 | * |
| @@ -291,10 +291,8 @@ asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset, | |||
| 291 | nl = 1; | 291 | nl = 1; |
| 292 | } | 292 | } |
| 293 | } | 293 | } |
| 294 | if (os != NULL) { | 294 | M_ASN1_OCTET_STRING_free(os); |
| 295 | M_ASN1_OCTET_STRING_free(os); | 295 | os = NULL; |
| 296 | os = NULL; | ||
| 297 | } | ||
| 298 | } else if (tag == V_ASN1_INTEGER) { | 296 | } else if (tag == V_ASN1_INTEGER) { |
| 299 | ASN1_INTEGER *bs; | 297 | ASN1_INTEGER *bs; |
| 300 | int i; | 298 | int i; |
| @@ -376,8 +374,7 @@ asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offset, | |||
| 376 | end: | 374 | end: |
| 377 | if (o != NULL) | 375 | if (o != NULL) |
| 378 | ASN1_OBJECT_free(o); | 376 | ASN1_OBJECT_free(o); |
| 379 | if (os != NULL) | 377 | M_ASN1_OCTET_STRING_free(os); |
| 380 | M_ASN1_OCTET_STRING_free(os); | ||
| 381 | *pp = p; | 378 | *pp = p; |
| 382 | return (ret); | 379 | return (ret); |
| 383 | } | 380 | } |
