From 6af4691c5a6b4eff90b8ee834e8eeef92beab698 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 13 Jan 1994 20:14:22 +0000 Subject: [PATCH] Fixed for newly enforced memory handling convention in the Kerberos library (for the credentials structure). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3310 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/simple/client/sim_client.c | 2 -- src/appl/user_user/client.c | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/appl/simple/client/sim_client.c b/src/appl/simple/client/sim_client.c index a9a713ed3..106d73a37 100644 --- a/src/appl/simple/client/sim_client.c +++ b/src/appl/simple/client/sim_client.c @@ -284,8 +284,6 @@ char *argv[]; exit(1); } - krb5_free_principal(server); - /* Make the safe message */ inbuf.data = argc == 3 ? argv[2] : MSG; inbuf.length = strlen (inbuf.data); diff --git a/src/appl/user_user/client.c b/src/appl/user_user/client.c index d560b41fe..c4b0e7dcc 100644 --- a/src/appl/user_user/client.c +++ b/src/appl/user_user/client.c @@ -77,7 +77,6 @@ char *argv[]; krb5_address serv_addr, cli_addr; krb5_ccache cc; krb5_creds creds; - krb5_principal sprinc; /* principal of server */ krb5_data reply, msg, princ_data; krb5_tkt_authent *authdat; unsigned short port; @@ -185,7 +184,7 @@ char *argv[]; return 7; } - if (retval = krb5_build_principal_ext(&sprinc, + if (retval = krb5_build_principal_ext(&creds.server, krb5_princ_realm(creds.client)->length, krb5_princ_realm(creds.client)->data, 6, "krbtgt", @@ -197,16 +196,12 @@ char *argv[]; return 7; } - creds.server = sprinc; - /* Get TGT from credentials cache */ if (retval = krb5_get_credentials(KRB5_GC_CACHED, cc, &creds)) { com_err("uu-client", retval, "getting TGT"); return 6; } - krb5_free_principal(sprinc); /* creds.server is replaced - upon retrieval */ i = strlen(princ) + 1; -- 2.26.2