From: Greg Hudson Date: Thu, 6 Nov 2008 15:49:00 +0000 (+0000) Subject: Fix a kadmin bug introduced in a recent set of string handling X-Git-Tag: krb5-1.7-alpha1~222 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d8eb1c5b3e447ff1008c503b10da938e42a1456;p=krb5.git Fix a kadmin bug introduced in a recent set of string handling conversions. ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21019 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index ea64826d3..00f26b129 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -174,7 +174,7 @@ kadmin_parse_name(name, principal) if (cp == NULL) result = asprintf(&fullname, "%s@%s", name, def_realm); else - fullname = strdup(name); + result = asprintf(&fullname, "%s", name); if (result < 0) return ENOMEM; retval = krb5_parse_name(context, fullname, principal);