improved error checking and some fixes

PR: 1170
Submitted by: Yair Elharrar
Reviewed and edited by: Nils Larsch
This commit is contained in:
Nils Larsch
2005-07-26 21:10:34 +00:00
parent 5c8e9139d1
commit c755c5fd8b
12 changed files with 71 additions and 20 deletions

View File

@@ -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;
}