ssl/ssl_asn1.c: Fix typo introduced via cc5b6a03a320f1
[openssl.git] / test / ecdsatest.c
index 6aeff25d327155ad9ddad351f8fb7959361fd982..377e2c53673b657d60913ab2818c52b7a2575c3c 100644 (file)
@@ -318,9 +318,7 @@ int test_builtin(BIO *out)
 
     /* get a list of all internal curves */
     crv_len = EC_get_builtin_curves(NULL, 0);
-
-    curves = OPENSSL_malloc(sizeof(EC_builtin_curve) * crv_len);
-
+    curves = OPENSSL_malloc(sizeof(*curves) * crv_len);
     if (curves == NULL) {
         BIO_printf(out, "malloc error\n");
         goto builtin_err;