]> git.ipfire.org Git - thirdparty/openssl.git/commit
cms_sd.c: Code style cleanup and removed redundant check
authorTomas Mraz <tomas@openssl.org>
Wed, 19 Nov 2025 10:53:05 +0000 (11:53 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 20 Nov 2025 14:07:47 +0000 (15:07 +0100)
commit00b112c024909cc94a84ba864cc2006f9a98ce4e
tree35ab903bb2f663f0601ceeb7d61c0ac972b9ad49
parent6b4ad7f8d8f40564621495f0f6183f9e7639d768
cms_sd.c: Code style cleanup and removed redundant check

The `md == NULL` check is redundant as ossl_cms_adjust_md()
never returns success with `md == NULL`.

Fixes Coverity issue 1675014
Fixes #29170

Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29171)
crypto/cms/cms_sd.c