Replace OPENSSL_free() with free()
authorjob <job@openbsd.org>
Thu, 2 Sep 2021 14:14:44 +0000 (14:14 +0000)
committerjob <job@openbsd.org>
Thu, 2 Sep 2021 14:14:44 +0000 (14:14 +0000)
OK tb@

lib/libcrypto/x509/x509_addr.c
lib/libcrypto/x509/x509_asid.c

index 5aff270..2bbecae 100644 (file)
@@ -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;
 }
index a9a13ff..4e45c7a 100644 (file)
@@ -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;