summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2021-09-02 14:14:45 +0000
committerJob Snijders <job@cvs.openbsd.org>2021-09-02 14:14:45 +0000
commit0e7fc54e8e49eed39bce38c91c329a0e238b363d (patch)
tree6a0bb82feba731e49ad8c1770c5336d352ab3adb /lib
parent9c4e733d567bfdb44238e73873aebf2e0bef50dc (diff)
Replace OPENSSL_free() with free()
OK tb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/x509/x509_addr.c6
-rw-r--r--lib/libcrypto/x509/x509_asid.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/libcrypto/x509/x509_addr.c b/lib/libcrypto/x509/x509_addr.c
index 5aff2700fb1..2bbecaec975 100644
--- a/lib/libcrypto/x509/x509_addr.c
+++ b/lib/libcrypto/x509/x509_addr.c
@@ -1062,7 +1062,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method,
X509V3_conf_err(val);
goto err;
}
- OPENSSL_free(s);
+ free(s);
s = NULL;
continue;
}
@@ -1131,7 +1131,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method,
goto err;
}
- OPENSSL_free(s);
+ free(s);
s = NULL;
}
@@ -1143,7 +1143,7 @@ static void *v2i_IPAddrBlocks(const struct v3_ext_method *method,
return addr;
err:
- OPENSSL_free(s);
+ free(s);
sk_IPAddressFamily_pop_free(addr, IPAddressFamily_free);
return NULL;
}
diff --git a/lib/libcrypto/x509/x509_asid.c b/lib/libcrypto/x509/x509_asid.c
index a9a13fff8b1..4e45c7ac805 100644
--- a/lib/libcrypto/x509/x509_asid.c
+++ b/lib/libcrypto/x509/x509_asid.c
@@ -174,17 +174,17 @@ static int i2r_ASIdentifierChoice(BIO *out,
if ((s = i2s_ASN1_INTEGER(NULL, aor->u.id)) == NULL)
return 0;
BIO_printf(out, "%*s%s\n", indent + 2, "", s);
- OPENSSL_free(s);
+ free(s);
break;
case ASIdOrRange_range:
if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->min)) == NULL)
return 0;
BIO_printf(out, "%*s%s-", indent + 2, "", s);
- OPENSSL_free(s);
+ free(s);
if ((s = i2s_ASN1_INTEGER(NULL, aor->u.range->max)) == NULL)
return 0;
BIO_printf(out, "%s\n", s);
- OPENSSL_free(s);
+ free(s);
break;
default:
return 0;
@@ -694,7 +694,7 @@ static void *v2i_ASIdentifiers(const struct v3_ext_method *method,
s[i1] = '\0';
min = s2i_ASN1_INTEGER(NULL, s);
max = s2i_ASN1_INTEGER(NULL, s + i2);
- OPENSSL_free(s);
+ free(s);
if (min == NULL || max == NULL) {
X509V3err(X509V3_F_V2I_ASIDENTIFIERS, ERR_R_MALLOC_FAILURE);
goto err;