]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/ml_dsa: fix public_from_private() error path to return failure
authorrodeka <rodeka.core@ya.ru>
Tue, 16 Sep 2025 17:38:17 +0000 (20:38 +0300)
committerPauli <paul.dale@oracle.com>
Wed, 17 Sep 2025 23:04:09 +0000 (09:04 +1000)
commitc5c70f370c0de953201b3ce0ca4e26ffd86aef46
treef6279a6d7cefa7b6dd96d174588104a4fc7cfee1
parent8ca96550ad79daa76d010bb110ba558286636de9
crypto/ml_dsa: fix public_from_private() error path to return failure

The error label returned success (1) even on failure. Make it return failure (0) instead.
Fixes #28562

CLA: trivial

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28576)

(cherry picked from commit 925e4fba1098036e8f8d22652cff6f64c5c7d571)
crypto/ml_dsa/ml_dsa_key.c