]> 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)
committerNeil Horman <nhorman@openssl.org>
Tue, 16 Sep 2025 13:41:38 +0000 (09:41 -0400)
commitce7fae1bc31c35abfa6b0c2daa9f889f6b370a0d
tree4963e5cbc4d54c6f2e701cb49763f51142a9ed55
parentfbd5d84d4b50e3e0db99529ccf781adcc7832640
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>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28546)
crypto/evp/ctrl_params_translate.c