From 86af898ba394ff6fe210aa7dff66135a610468f3 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 9 Jul 2009 01:59:08 +0000 Subject: [PATCH] pull up r20580 from trunk ------------------------------------------------------------------------ r20580 | raeburn | 2008-07-25 15:19:06 -0400 (Fri, 25 Jul 2008) | 8 lines ticket: new target_version: 1.6.4 tags: pullup subject: fix possible uninit variable use in error path Clear gss_client and gss_target before any possible branch to 'error', where they can be used. ticket: 6053 version_fixed: 1.6.4 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@22428 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/clnt/client_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 26a7304d9..728d6515c 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -569,6 +569,7 @@ kadm5_setup_gss(kadm5_server_handle_t handle, code = KADM5_GSS_ERROR; gss_client_creds = GSS_C_NO_CREDENTIAL; ccname_orig = NULL; + gss_client = gss_target = GSS_C_NO_NAME; /* Temporarily use the kadm5 cache. */ gssstat = gss_krb5_ccache_name(&minor_stat, handle->cache_name, -- 2.26.2