projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf9a02f
)
Fix a kadmin bug introduced in a recent set of string handling
author
Greg Hudson
<ghudson@mit.edu>
Thu, 6 Nov 2008 15:49:00 +0000
(15:49 +0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/src/kadmin/cli/kadmin.c
b/src/kadmin/cli/kadmin.c
index ea64826d323ea2e338e02fd7e4158bf2522db0f9..00f26b129b49984034958fad2d7a5500076bbb88 100644
(file)
--- 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);