From a424c8fc4ddb2d2aaf9f1302b732d5095b2fc8f2 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 14 Feb 1991 11:42:02 +0000 Subject: [PATCH] Changes to reflect the API interface changes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1696 dc483132-0cff-0310-8789-dd5450dbe970 --- src/admin/edit/kdb5_edit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index 86856a029..548a243d2 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -91,6 +91,11 @@ char *mkey_name = 0; krb5_boolean manual_mkey = FALSE; krb5_boolean dbactive = FALSE; +/* + * XXX Memory leak for cur_realm, which is assigned both allocated + * values (in set_dbname) and unallocated values (from argv()). + */ + void quit() { @@ -116,7 +121,7 @@ char *argv[]; krb5_error_code retval; char *dbname = 0; - char defrealm[BUFSIZ]; + char *defrealm; int keytypedone = 0; krb5_enctype etype = 0xffff; int sci_idx, code; @@ -198,7 +203,7 @@ char *argv[]; } if (!cur_realm) { - if (retval = krb5_get_default_realm(sizeof(defrealm), defrealm)) { + if (retval = krb5_get_default_realm(&defrealm)) { com_err(progname, retval, "while retrieving default realm name"); exit(1); } -- 2.26.2