kdf: avoid NULL dereference on malloc failure in sshkdf
authorPauli <pauli@openssl.org>
Thu, 31 Mar 2022 21:06:17 +0000 (08:06 +1100)
committerPauli <pauli@openssl.org>
Sun, 10 Apr 2022 23:54:32 +0000 (09:54 +1000)
commit7d486b2c0ea43227b5d9b6d3b66a5f4365ecdbae
treed46f79bb3cee7ae71b00fe15fd8a89a973a67713
parenta63529f893fac5f9655b6576c1a4b8e215cd3284
kdf: avoid NULL dereference on malloc failure in sshkdf

Fixes #18009

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/18011)

(cherry picked from commit 148176ca323e3dfce5d5cdb5578c113c8d2440bb)
providers/implementations/kdfs/sshkdf.c