Package: libkrb53 Version: 4.996-5.0-rc6-1 Severity: Important Tags: patch If the krb5_parse_name function is called several times with different default realms, the default realm set prior to the first call is used all the time. The reason is that the default realm is stored in a static local variable in the krb5_parse_name function so the fix is trivial.
The bug is the cause of bug #288745 in libapache-mod-auth-kerb. Patch: diff -ru krb5-1.3.6.orig/src/lib/krb5/krb/parse.c krb5-1.3.6/src/lib/krb5/krb/parse.c --- krb5-1.3.6.orig/src/lib/krb5/krb/parse.c 2003-04-02 05:48:55.000000000 +0200 +++ krb5-1.3.6/src/lib/krb5/krb/parse.c 2006-02-09 10:38:39.547672803 +0100 @@ -73,8 +73,8 @@ const char *parsed_realm = NULL; int fcompsize[FCOMPNUM]; unsigned int realmsize = 0; - static char *default_realm = NULL; - static int default_realm_size = 0; + char *default_realm = NULL; + int default_realm_size = 0; char *tmpdata; krb5_principal principal; krb5_error_code retval; -- Henrik Johansson email: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]