From 243442e0f6d87748dcaccc2d2d3bf5605be3e3a9 Mon Sep 17 00:00:00 2001 From: miod <> Date: Sun, 19 Jul 2015 18:29:31 +0000 Subject: Drop stupid (int) casts for the arguments of malloc() and friends. This is not 16-bit MS-DOS anymore. ok bcook@ tedu@ --- src/lib/libcrypto/ocsp/ocsp_ext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/ocsp/ocsp_ext.c') diff --git a/src/lib/libcrypto/ocsp/ocsp_ext.c b/src/lib/libcrypto/ocsp/ocsp_ext.c index 7e69ad4fe0..edcf5bcca8 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ext.c +++ b/src/lib/libcrypto/ocsp/ocsp_ext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_ext.c,v 1.13 2014/10/28 05:46:56 miod Exp $ */ +/* $OpenBSD: ocsp_ext.c,v 1.14 2015/07/19 18:29:31 miod Exp $ */ /* Written by Tom Titchener for the OpenSSL * project. */ @@ -326,7 +326,7 @@ ASN1_STRING_encode(ASN1_STRING *s, i2d_of_void *i2d, void *data, if (data) { if ((i = i2d(data, NULL)) <= 0) goto err; - if (!(b = p = malloc((unsigned int)i))) + if (!(b = p = malloc(i))) goto err; if (i2d(data, &p) <= 0) goto err; @@ -335,7 +335,7 @@ ASN1_STRING_encode(ASN1_STRING *s, i2d_of_void *i2d, void *data, (I2D_OF(ASN1_OBJECT))i2d, V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, IS_SEQUENCE)) <= 0) goto err; - if (!(b = p = malloc((unsigned int)i))) + if (!(b = p = malloc(i))) goto err; if (i2d_ASN1_SET_OF_ASN1_OBJECT(sk, &p, (I2D_OF(ASN1_OBJECT))i2d, V_ASN1_SEQUENCE, -- cgit v1.2.3-55-g6feb