Fix a kadmin bug introduced in a recent set of string handling
authorGreg Hudson <ghudson@mit.edu>
Thu, 6 Nov 2008 15:49:00 +0000 (15:49 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 6 Nov 2008 15:49:00 +0000 (15:49 +0000)
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

index ea64826d323ea2e338e02fd7e4158bf2522db0f9..00f26b129b49984034958fad2d7a5500076bbb88 100644 (file)
@@ -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);