pull up r18878 from trunk
authorTom Yu <tlyu@mit.edu>
Thu, 30 Nov 2006 21:10:23 +0000 (21:10 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 30 Nov 2006 21:10:23 +0000 (21:10 +0000)
commit3b457b1ec94ac197248c78cb70463f5fe28cffd2
treea90a8ef635584f701b70cbed5b683cf60c04de22
parentae89eddb1a24cfcf38b02945582ccde343b5782e
pull up r18878 from trunk

 r18878@cathode-dark-space:  tlyu | 2006-11-30 15:46:32 -0500
 ticket: 4955
 tags: pullup

  * src/lib/krb5/krb/gc_frm_kdc.c: Also do style cleanup.
  (krb5_get_cred_from_kdc_opt): If server principal was rewritten,
  fall back unless it was rewritten to a TGS principal.  This fixes
  a bug when a MS AD rewrites the service principal into a
  single-component NETBIOS-style name. If we get a referral back to
  the immediately preceding realm, fall back to non-referral
  handling.  This fixes the changepw failure.  To prevent memory
  leaks, when falling back to non-referral handling, free any tgts
  previously obtained by the initial non-referral do_traversal()
  call.

ticket: 4955
version_fixed: 1.6

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@18880 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/gc_frm_kdc.c