projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70674c3
)
Use free() to free realm component, until a replacement function is added
author
Richard Basch
<probe@mit.edu>
Wed, 19 Feb 1997 01:02:09 +0000
(
01:02
+0000)
committer
Richard Basch
<probe@mit.edu>
Wed, 19 Feb 1997 01:02:09 +0000
(
01:02
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9907
dc483132
-0cff-0310-8789-
dd5450dbe970
src/appl/bsd/kcmd.c
patch
|
blob
|
history
diff --git
a/src/appl/bsd/kcmd.c
b/src/appl/bsd/kcmd.c
index e25da17d80b68f53067fd0af09ebafedd51dafae..73b2ec6b9076102a1357f79e6ada2843b99e3066 100644
(file)
--- a/
src/appl/bsd/kcmd.c
+++ b/
src/appl/bsd/kcmd.c
@@
-152,7
+152,9
@@
kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
}
if (realm && *realm) {
- (void) krb5_xfree(krb5_princ_realm(bsd_context,get_cred->server)->data);
+ free(krb5_princ_realm(bsd_context,get_cred->server)->data);
+ /*krb5_xfree(krb5_princ_realm(bsd_context,get_cred->server)->data);*/
+
krb5_princ_set_realm_length(bsd_context,get_cred->server,strlen(realm));
krb5_princ_set_realm_data(bsd_context,get_cred->server,strdup(realm));
}