]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix error check on default_check() helper function
authorndossche <niels.dossche@ugent.be>
Mon, 30 Jan 2023 14:24:01 +0000 (15:24 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Feb 2023 15:56:20 +0000 (16:56 +0100)
commit650f0474282330e3eb2a3df0eff5864bbdcf5845
tree01fefc84ee9ab68dc0521ee484dda94243c5a390
parent513e103f14e8473fb6810aa216ab3fb7b724ca5d
Fix error check on default_check() helper function

default_check() can return a zero value to indicate an internal error in
one condition for the PRE_CTRL_STR_TO_PARAMS state. This state can be
reached from the default_fixup_args() function which does not check for
a zero value. All other callers of default_check() in that file do check
for a zero return value. Fix it by changing the check to <= 0.

CLA: trivial

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20175)
crypto/evp/ctrl_params_translate.c