summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2005-01-03 19:30:18 +0000
committerKen Raeburn <raeburn@mit.edu>2005-01-03 19:30:18 +0000
commit0babe45929bd4ea488b7e05808fc37026938ac66 (patch)
treefb44a06a1ab9fc8e3f32a40450c714d24007556a /src/include
parentc5353b742898cafcc85f204f03c02445e05791d5 (diff)
downloadkrb5-0babe45929bd4ea488b7e05808fc37026938ac66.tar.gz
krb5-0babe45929bd4ea488b7e05808fc37026938ac66.tar.xz
krb5-0babe45929bd4ea488b7e05808fc37026938ac66.zip
krb5_parse_name not thread-safe, not responsive to environment changes
As Ezra noted, krb5_parse_name saves away the default realm the first time it looks it up, and will never look it up again, even if the config file has changed, the context isn't the same one, etc. It also used a static variable which wasn't thread-safe. With this patch, we still won't catch changes in the config file specification after the default realm has been looked up for a given krb5_context, because it's cached in the context too, but this will at least be more responsive, and thread safe. * parse.c (krb5_parse_name): Don't cache the default realm name. ticket: new target_version: 1.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16988 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions