diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-05-28 18:02:37 +0200 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-06-02 16:36:56 +0200 |
commit | 5755c11fd6e50028946e6e17c835afcd56995699 (patch) | |
tree | 92ed95011ca89741b31cabfd560fc935116a84ec /engines | |
parent | Fix the checks of EVP_PKEY_private_check (diff) | |
download | openssl-5755c11fd6e50028946e6e17c835afcd56995699.tar.xz openssl-5755c11fd6e50028946e6e17c835afcd56995699.zip |
Fix the checks of UI_add_input_string
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18424)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_loader_attic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c index c7ab4251c0..7b9dcd9fee 100644 --- a/engines/e_loader_attic.c +++ b/engines/e_loader_attic.c @@ -70,8 +70,8 @@ static char *file_get_pass(const UI_METHOD *ui_method, char *pass, if ((prompt = UI_construct_prompt(ui, desc, info)) == NULL) { ATTICerr(0, ERR_R_MALLOC_FAILURE); pass = NULL; - } else if (!UI_add_input_string(ui, prompt, UI_INPUT_FLAG_DEFAULT_PWD, - pass, 0, maxsize - 1)) { + } else if (UI_add_input_string(ui, prompt, UI_INPUT_FLAG_DEFAULT_PWD, + pass, 0, maxsize - 1) <= 0) { ATTICerr(0, ERR_R_UI_LIB); pass = NULL; } else { |