]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/evp/ctrl_params_translate.c: fix a typo in the error message
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 15 Sep 2025 03:05:01 +0000 (05:05 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 Sep 2025 14:58:34 +0000 (16:58 +0200)
commit2be1b400e77ef4ce57f14b9fa15e4afe18d0a7fd
treed3db1e88304996de2fdc35dfdae5785afa771d38
parentd6514ce319a7284f8447a462aa3adfcb69c067f4
crypto/evp/ctrl_params_translate.c: fix a typo in the error message

The ERR_raise_data() call on failure to find ctx->p2 in str_value_map
erroneously refers to ctx->p1 instead;  fix that but supplying the
correct field and casting it to the supposed const char * type.

Fixes: 9a1c4e41e8d3 "EVP: Implement data-driven translation between known ctrl and OSSL_PARAMs"
Resolves: https://scan5.scan.coverity.com/#/project-view/65248/10222?selectedIssue=1665427
References: https://github.com/openssl/project/issues/1432
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28647)
crypto/evp/ctrl_params_translate.c