From a11800a151af238747f2d8ca0c64e2e33c8b08ac Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Wed, 19 Feb 1997 01:02:09 +0000 Subject: [PATCH] Use free() to free realm component, until a replacement function is added git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9907 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/kcmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index e25da17d8..73b2ec6b9 100644 --- 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)); } -- 2.26.2