diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_asid.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_asid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_asid.c b/src/lib/libcrypto/x509/x509_asid.c index a9a13fff8b..4e45c7ac80 100644 --- a/src/lib/libcrypto/x509/x509_asid.c +++ b/src/lib/libcrypto/x509/x509_asid.c | |||
| @@ -174,17 +174,17 @@ static int i2r_ASIdentifierChoice(BIO *out, | |||
| 174 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.id)) == NULL) | 174 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.id)) == NULL) |
| 175 | return 0; | 175 | return 0; |
| 176 | BIO_printf(out, "%*s%s\n", indent + 2, "", s); | 176 | BIO_printf(out, "%*s%s\n", indent + 2, "", s); |
| 177 | OPENSSL_free(s); | 177 | free(s); |
| 178 | break; | 178 | break; |
| 179 | case ASIdOrRange_range: | 179 | case ASIdOrRange_range: |
| 180 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->min)) == NULL) | 180 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->min)) == NULL) |
| 181 | return 0; | 181 | return 0; |
| 182 | BIO_printf(out, "%*s%s-", indent + 2, "", s); | 182 | BIO_printf(out, "%*s%s-", indent + 2, "", s); |
| 183 | OPENSSL_free(s); | 183 | free(s); |
| 184 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->max)) == NULL) | 184 | if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->max)) == NULL) |
| 185 | return 0; | 185 | return 0; |
| 186 | BIO_printf(out, "%s\n", s); | 186 | BIO_printf(out, "%s\n", s); |
| 187 | OPENSSL_free(s); | 187 | free(s); |
| 188 | break; | 188 | break; |
| 189 | default: | 189 | default: |
| 190 | return 0; | 190 | return 0; |
| @@ -694,7 +694,7 @@ static void *v2i_ASIdentifiers(const struct v3_ext_method *method, | |||
| 694 | s[i1] = '\0'; | 694 | s[i1] = '\0'; |
| 695 | min = s2i_ASN1_INTEGER(NULL, s); | 695 | min = s2i_ASN1_INTEGER(NULL, s); |
| 696 | max = s2i_ASN1_INTEGER(NULL, s + i2); | 696 | max = s2i_ASN1_INTEGER(NULL, s + i2); |
| 697 | OPENSSL_free(s); | 697 | free(s); |
| 698 | if (min == NULL || max == NULL) { | 698 | if (min == NULL || max == NULL) { |
| 699 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); | 699 | X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE); |
| 700 | goto err; | 700 | goto err; |
