remove malloc casts
[openssl.git] / crypto / asn1 / n_pkey.c
index cd6391e941426a965d5346f2cf547b623ef9fae8..0d8480b8dd8b1c8c8c7827b6a7d808c8568803ae 100644 (file)
@@ -167,7 +167,7 @@ int i2d_RSA_NET(const RSA *a, unsigned char **pp,
     }
 
     /* Since its RC4 encrypted length is actual length */
-    if ((zz = (unsigned char *)OPENSSL_malloc(rsalen)) == NULL) {
+    if ((zz = OPENSSL_malloc(rsalen)) == NULL) {
         ASN1err(ASN1_F_I2D_RSA_NET, ERR_R_MALLOC_FAILURE);
         goto err;
     }