diff options
author | deraadt <> | 2014-04-21 16:34:43 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-21 16:34:43 +0000 |
commit | 852fcec6fe7cfa5d7c83e2f494208588dd4b4031 (patch) | |
tree | db931d37021e7a614e9fe59092bb1351fc69273f /src/lib/libssl/s3_clnt.c | |
parent | dbe50a7f3c84521e4543ad2e5292244bd0b81414 (diff) | |
download | openbsd-852fcec6fe7cfa5d7c83e2f494208588dd4b4031.tar.gz openbsd-852fcec6fe7cfa5d7c83e2f494208588dd4b4031.tar.bz2 openbsd-852fcec6fe7cfa5d7c83e2f494208588dd4b4031.zip |
more malloc/realloc/calloc cleanups; ok beck kettenis
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index 10546ee848..ac1812d857 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -2390,9 +2390,7 @@ ssl3_send_client_key_exchange(SSL *s) | |||
2390 | POINT_CONVERSION_UNCOMPRESSED, | 2390 | POINT_CONVERSION_UNCOMPRESSED, |
2391 | NULL, 0, NULL); | 2391 | NULL, 0, NULL); |
2392 | 2392 | ||
2393 | encodedPoint = | 2393 | encodedPoint = malloc(encoded_pt_len); |
2394 | (unsigned char *)malloc( | ||
2395 | encoded_pt_len * sizeof(unsigned char)); | ||
2396 | 2394 | ||
2397 | bn_ctx = BN_CTX_new(); | 2395 | bn_ctx = BN_CTX_new(); |
2398 | if ((encodedPoint == NULL) || | 2396 | if ((encodedPoint == NULL) || |