From c755c5fd8ba5771691451e9d1b163544fdadb7ec Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Tue, 26 Jul 2005 21:10:34 +0000 Subject: improved error checking and some fixes PR: 1170 Submitted by: Yair Elharrar Reviewed and edited by: Nils Larsch --- crypto/ui/ui_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crypto/ui') diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c index 1a8f3ce113..7ab249c3be 100644 --- a/crypto/ui/ui_lib.c +++ b/crypto/ui/ui_lib.c @@ -620,8 +620,10 @@ UI_METHOD *UI_create_method(char *name) UI_METHOD *ui_method = (UI_METHOD *)OPENSSL_malloc(sizeof(UI_METHOD)); if (ui_method) + { memset(ui_method, 0, sizeof(*ui_method)); - ui_method->name = BUF_strdup(name); + ui_method->name = BUF_strdup(name); + } return ui_method; } -- cgit v1.2.3