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:
439ae4d
)
Only check for a result buffer if the allocated string is a prompt string.
author
Richard Levitte
<levitte@openssl.org>
Thu, 5 Dec 2002 00:04:30 +0000
(
00:04
+0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 5 Dec 2002 00:04:30 +0000
(
00:04
+0000)
PR: 381
crypto/ui/ui_lib.c
patch
|
blob
|
history
diff --git
a/crypto/ui/ui_lib.c
b/crypto/ui/ui_lib.c
index 06d1c2ba9370bcec3a2c16db7bf968f922bbbe81..1dad878ff6d8d6fb076082ee86da6c68ee795891 100644
(file)
--- a/
crypto/ui/ui_lib.c
+++ b/
crypto/ui/ui_lib.c
@@
-145,7
+145,8
@@
static UI_STRING *general_allocate_prompt(UI *ui, const char *prompt,
{
UIerr(UI_F_GENERAL_ALLOCATE_PROMPT,ERR_R_PASSED_NULL_PARAMETER);
}
- else if (result_buf == NULL)
+ else if ((type == UIT_PROMPT || type == UIT_VERIFY
+ || type == UIT_BOOLEAN) && result_buf == NULL)
{
UIerr(UI_F_GENERAL_ALLOCATE_PROMPT,UI_R_NO_RESULT_BUFFER);
}