[krbdev.mit.edu #6298] KIM vs no-config
Zhanna Tsitkova via RT
rt-comment at krbdev.mit.edu
Fri Dec 12 14:58:42 EST 2008
diff -Nur -x '*~' -x '*.orig' -x '*.rej' -x '*.pbxbtree' -x '*.pbxindex' -x lha.mode1v3 -x lha.mode2v3 -x lha.pbxuser -x windows -x .DS_Store Kerberos.AEP-6.5fc1.orig/KerberosFramework/Kerberos5/Sources/kim/lib/kim_preferences.c Kerberos.AEP-6.5fc1/KerberosFramework/Kerberos5/Sources/kim/lib/kim_preferences.c
--- Kerberos.AEP-6.5fc1.orig/KerberosFramework/Kerberos5/Sources/kim/lib/kim_preferences.c 2008-11-07 11:24:45.000000000 -0800
+++ Kerberos.AEP-6.5fc1/KerberosFramework/Kerberos5/Sources/kim/lib/kim_preferences.c 2008-12-09 14:47:57.000000000 -0800
@@ -440,21 +440,23 @@
kim_identity identity = NULL;
err = kim_os_identity_create_for_username (&default_identity);
-
- if (!err) {
+ /* lets ignore that we don't have a default id because we might not know our default realm */
+ if (err == 0) {
+
err = kim_os_preferences_get_identity_for_key (kim_preference_key_client_identity,
default_identity,
&identity);
- }
+
+ if (!err) {
+ kim_identity_free (&in_preferences->client_identity);
+ in_preferences->client_identity = identity;
+ identity = NULL;
+ }
- if (!err) {
- kim_identity_free (&in_preferences->client_identity);
- in_preferences->client_identity = identity;
- identity = NULL;
- }
-
- kim_identity_free (&default_identity);
- kim_identity_free (&identity);
+ kim_identity_free (&default_identity);
+ kim_identity_free (&identity);
+ } else
+ err = 0;
}
if (!err) {
More information about the krb5-bugs
mailing list