From 5d8eb1c5b3e447ff1008c503b10da938e42a1456 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 6 Nov 2008 15:49:00 +0000 Subject: [PATCH] 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 --- src/kadmin/cli/kadmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2