summaryrefslogtreecommitdiffstats
path: root/crypto/kdf
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-19 16:17:41 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-01-19 16:33:45 +0100
commitaa291c62a7c227d94073c8cd4ce81aa6950d72d7 (patch)
tree75d29e34a636128011fe16836c155cede2bef3c0 /crypto/kdf
parentUpdate license year range to 2016 (diff)
downloadopenssl-aa291c62a7c227d94073c8cd4ce81aa6950d72d7.tar.xz
openssl-aa291c62a7c227d94073c8cd4ce81aa6950d72d7.zip
prf redirection build fixes
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'crypto/kdf')
-rw-r--r--crypto/kdf/tls1_prf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/kdf/tls1_prf.c b/crypto/kdf/tls1_prf.c
index 3c14b904f8..374c6e49ec 100644
--- a/crypto/kdf/tls1_prf.c
+++ b/crypto/kdf/tls1_prf.c
@@ -142,7 +142,7 @@ static int pkey_tls1_prf_derive(EVP_PKEY_CTX *ctx, unsigned char *key,
size_t *keylen)
{
TLS1_PRF_PKEY_CTX *kctx = ctx->data;
- if (kctx->md == NULL || kctx->sec == NULL || kctx->seed == NULL)
+ if (kctx->md == NULL || kctx->sec == NULL || kctx->seedlen == 0)
return 0;
return tls1_prf_alg(kctx->md, kctx->sec, kctx->seclen,
kctx->seed, kctx->seedlen,