From 4817e127ad26a595033ba6cab354efeef0c86798 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 21 Apr 2014 16:34:44 +0000 Subject: more malloc/realloc/calloc cleanups; ok beck kettenis --- lib/libssl/d1_clnt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libssl/d1_clnt.c') diff --git a/lib/libssl/d1_clnt.c b/lib/libssl/d1_clnt.c index 6bceeea55b1..cf9bc2d33ed 100644 --- a/lib/libssl/d1_clnt.c +++ b/lib/libssl/d1_clnt.c @@ -1308,9 +1308,7 @@ dtls1_send_client_key_exchange(SSL *s) POINT_CONVERSION_UNCOMPRESSED, NULL, 0, NULL); - encodedPoint = (unsigned char *) - malloc(encoded_pt_len * - sizeof(unsigned char)); + encodedPoint = malloc(encoded_pt_len); bn_ctx = BN_CTX_new(); if ((encodedPoint == NULL) || -- cgit v1.2.3