]> git.ipfire.org Git - thirdparty/openssl.git/commit
srtpkdf.c: avoid ctx NULL dereference kdf_srtpkdf_set_ctx_params()
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 26 Jan 2026 08:51:33 +0000 (09:51 +0100)
committerNeil Horman <nhorman@openssl.org>
Wed, 28 Jan 2026 12:56:46 +0000 (07:56 -0500)
commit63f62bf4e55111d87898f534ad0a2164e13ba289
tree9e0c959687f9ab78fab750eaf9377b76f15b31d8
parent7ad410d6c6a238260b2f7da547f4a38bd023b706
srtpkdf.c: avoid ctx NULL dereference kdf_srtpkdf_set_ctx_params()

ctx is dereferenced before NULL check to obtain libctx.  Fix it
by moving the dereference after the NULL check.

Resolves: https://scan5.scan.coverity.com/#/project-view/65248/10222?selectedIssue=1680648
Fixes: fe67753da4096 "Add SRTPKDF implementation"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
MergeDate: Wed Jan 28 12:57:00 2026
(Merged from https://github.com/openssl/openssl/pull/29757)
providers/implementations/kdfs/srtpkdf.c