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_srvr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libssl/d1_srvr.c') diff --git a/lib/libssl/d1_srvr.c b/lib/libssl/d1_srvr.c index fc475485baa..8fa75819bb1 100644 --- a/lib/libssl/d1_srvr.c +++ b/lib/libssl/d1_srvr.c @@ -1182,8 +1182,7 @@ dtls1_send_server_key_exchange(SSL *s) POINT_CONVERSION_UNCOMPRESSED, NULL, 0, NULL); - encodedPoint = (unsigned char *) - malloc(encodedlen*sizeof(unsigned char)); + encodedPoint = malloc(encodedlen); bn_ctx = BN_CTX_new(); if ((encodedPoint == NULL) || (bn_ctx == NULL)) { -- cgit v1.2.3