diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-21 16:34:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-21 16:34:44 +0000 |
commit | 4817e127ad26a595033ba6cab354efeef0c86798 (patch) | |
tree | e8a82616e29cb738615f2bd03edbedeb56434a29 /lib/libssl/d1_clnt.c | |
parent | 45b40b60d0df5a71f8c8729a955d697b8b42b7f6 (diff) |
more malloc/realloc/calloc cleanups; ok beck kettenis
Diffstat (limited to 'lib/libssl/d1_clnt.c')
-rw-r--r-- | lib/libssl/d1_clnt.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) || |