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_srvr.c | |
parent | 45b40b60d0df5a71f8c8729a955d697b8b42b7f6 (diff) |
more malloc/realloc/calloc cleanups; ok beck kettenis
Diffstat (limited to 'lib/libssl/d1_srvr.c')
-rw-r--r-- | lib/libssl/d1_srvr.c | 3 |
1 files changed, 1 insertions, 2 deletions
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)) { |