diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/kdf/tls1_prf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/kdf/tls1_prf.c b/src/lib/libcrypto/kdf/tls1_prf.c index 1ba1e363f7..cefb3e2cad 100644 --- a/src/lib/libcrypto/kdf/tls1_prf.c +++ b/src/lib/libcrypto/kdf/tls1_prf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls1_prf.c,v 1.29 2024/07/09 17:00:59 tb Exp $ */ | 1 | /* $OpenBSD: tls1_prf.c,v 1.30 2024/07/09 17:01:40 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project |
| 4 | * 2016. | 4 | * 2016. |
| @@ -291,7 +291,7 @@ tls1_prf_P_hash(const EVP_MD *md, | |||
| 291 | goto err; | 291 | goto err; |
| 292 | if (out_len > (size_t)chunk && !EVP_MD_CTX_copy_ex(ctx_tmp, ctx)) | 292 | if (out_len > (size_t)chunk && !EVP_MD_CTX_copy_ex(ctx_tmp, ctx)) |
| 293 | goto err; | 293 | goto err; |
| 294 | if (seed && !EVP_DigestSignUpdate(ctx, seed, seed_len)) | 294 | if (seed != NULL && !EVP_DigestSignUpdate(ctx, seed, seed_len)) |
| 295 | goto err; | 295 | goto err; |
| 296 | 296 | ||
| 297 | if (out_len > (size_t)chunk) { | 297 | if (out_len > (size_t)chunk) { |
