PKCS7: Remove one of the duplicate checks
authorJiasheng Jiang <jiasheng@purdue.edu>
Mon, 4 Mar 2024 17:34:02 +0000 (17:34 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 11 Mar 2024 14:19:15 +0000 (15:19 +0100)
commit8211ca45e41efd4224705848f1de3c2d6aa7b07a
tree8266b9b7fe7b23209fb8ef9eaeecef58476a30f0
parent1f03d33ef5b1a6657257f983bfba02a7469d846f
PKCS7: Remove one of the duplicate checks

There are two consecutive identical checks "if (i <= 0)".
We can remove one of them to make the code clear.

CLA: trivial

Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23741)
crypto/pkcs7/pk7_smime.c