pull up r19582 from trunk
authorTom Yu <tlyu@mit.edu>
Tue, 19 Jun 2007 19:22:50 +0000 (19:22 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 19 Jun 2007 19:22:50 +0000 (19:22 +0000)
commit749f5e8e4d1cdd9f4f8ca9437095efbbc53b97e7
tree5e25bf236bab8e71ce7d8c230755bcfa3b2f75e4
parent8e5c512a99a65e8cc6d0936334c24568c15d5999
pull up r19582 from trunk

 r19582@cathode-dark-space:  tlyu | 2007-06-18 17:07:37 -0400
 ticket: new
 subject: krb5_walk_realm_tree leaks in capaths case
 target_version: 1.6.2
 tags: pullup

 Markus Moeller reports a leak in krb5_get_credentials() which was then
 traced down to profile strings leaking from within
 krb5_walk_realm_tree().  A pointer to a profile string was getting
 overwritten without the string being freed when *cap_nodes[0] == '.'.
 Fix is to free the string prior to overwriting the pointer if the
 pointer is non-null.

ticket: 5579
version_fixed: 1.6.2

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