pull up r20580 from trunk
authorTom Yu <tlyu@mit.edu>
Thu, 9 Jul 2009 01:59:08 +0000 (01:59 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 9 Jul 2009 01:59:08 +0000 (01:59 +0000)
 ------------------------------------------------------------------------
 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

index 26a7304d9d6bbaf591fe5638f7ab5aed18162b15..728d6515c0814d008f92ad47f701ef8ff292d545 100644 (file)
@@ -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,