projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d5390a
)
UI_UTIL_read_pw() misinterpreted the values returned from UI functions.
author
Richard Levitte
<levitte@openssl.org>
Mon, 13 Jan 2003 14:17:43 +0000
(14:17 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 13 Jan 2003 14:17:43 +0000
(14:17 +0000)
PR: 456
crypto/ui/ui_util.c
patch
|
blob
|
history
diff --git
a/crypto/ui/ui_util.c
b/crypto/ui/ui_util.c
index ee9730d5e2f87a972cbc532eb0f9cccefd130819..46bc8c1a9a08f48496b7de645717fcb0e7d306e0 100644
(file)
--- a/
crypto/ui/ui_util.c
+++ b/
crypto/ui/ui_util.c
@@
-78,12
+78,14
@@
int UI_UTIL_read_pw(char *buf,char *buff,int size,const char *prompt,int verify)
if (ui)
{
ok = UI_add_input_string(ui,prompt,0,buf,0,size-1);
- if (ok
=
= 0 && verify)
+ if (ok
>
= 0 && verify)
ok = UI_add_verify_string(ui,prompt,0,buff,0,size-1,
buf);
- if (ok
=
= 0)
+ if (ok
>
= 0)
ok=UI_process(ui);
UI_free(ui);
}
+ if (ok > 0)
+ ok = 0;
return(ok);
}