summaryrefslogtreecommitdiffstats
path: root/ssl/t1_enc.c
diff options
context:
space:
mode:
authorJ Mohan Rao Arisankala <mohan@barracuda.com>2016-02-23 20:20:50 +0530
committerRich Salz <rsalz@openssl.org>2016-02-23 11:33:57 -0500
commita44a208442ecf8f576c9e364f8b46b6661c7d2de (patch)
tree22f3c898745a37a1484788bb1518b44124986684 /ssl/t1_enc.c
parent6b2ebe4332e22b4eb7dd6fadf418e3da7b926ca4 (diff)
GH735: remove unnecessary allocation
Removing code, where memory was getting allocated for an unused variable Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r--ssl/t1_enc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index 6b3a73e39e..1b2820bff9 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -648,15 +648,10 @@ int tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen,
const unsigned char *context,
size_t contextlen, int use_context)
{
- unsigned char *buff;
unsigned char *val = NULL;
size_t vallen = 0, currentvalpos;
int rv;
- buff = OPENSSL_malloc(olen);
- if (buff == NULL)
- goto err2;
-
/*
* construct PRF arguments we construct the PRF argument ourself rather
* than passing separate values into the TLS PRF to ensure that the
@@ -729,7 +724,6 @@ int tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen,
rv = 0;
ret:
OPENSSL_clear_free(val, vallen);
- OPENSSL_clear_free(buff, olen);
return (rv);
}