From 1b4b26600662f5ead97c76153f1cbf8ce199f180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 2 May 2005 21:01:33 +0000 Subject: [PATCH] (krb5_ui_method_read_string): use the fill in length git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15059 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/pkinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/pkinit.c b/lib/krb5/pkinit.c index b8193bee8..2bcc87e43 100644 --- a/lib/krb5/pkinit.c +++ b/lib/krb5/pkinit.c @@ -160,7 +160,7 @@ krb5_ui_method_read_string(UI *ui, UI_STRING *uis) case UIT_VERIFY: case UIT_PROMPT: length = UI_get_result_maxsize(uis); - buffer = malloc(password_data.length); + buffer = malloc(length); if (buffer == NULL) { krb5_set_error_string(ui_data->context, "malloc: out of memory"); return 0;