From 852fcec6fe7cfa5d7c83e2f494208588dd4b4031 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 21 Apr 2014 16:34:43 +0000 Subject: more malloc/realloc/calloc cleanups; ok beck kettenis --- src/lib/libssl/d1_clnt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib/libssl/d1_clnt.c') diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index 6bceeea55b..cf9bc2d33e 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/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-55-g6feb