From a13698710d1bf0bac4832733da5c86886601b5d4 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 21 Apr 2014 11:37:41 +0000 Subject: improve realloc/calloc/malloc patterns; ok guenther --- src/lib/libcrypto/asn1/a_i2d_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/libcrypto/asn1/a_i2d_fp.c') diff --git a/src/lib/libcrypto/asn1/a_i2d_fp.c b/src/lib/libcrypto/asn1/a_i2d_fp.c index 082ba1b3a8..007e612b4a 100644 --- a/src/lib/libcrypto/asn1/a_i2d_fp.c +++ b/src/lib/libcrypto/asn1/a_i2d_fp.c @@ -89,7 +89,7 @@ ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) int i, j = 0, n, ret = 1; n = i2d(x, NULL); - b = (char *)malloc(n); + b = malloc(n); if (b == NULL) { ASN1err(ASN1_F_ASN1_I2D_BIO, ERR_R_MALLOC_FAILURE); return (0); -- cgit v1.2.3-55-g6feb