+Thu Apr 15 20:18:38 1999 Tom Yu <tlyu@mit.edu>
+
+ * g_cnffile.c (krb__get_srvtabname): Fix to actually extract
+ krb5_srvtab value from profile, instead of always ignoring it.
+
Mon Feb 8 21:56:45 1999 Theodore Y. Ts'o <tytso@mit.edu>
* rd_req.c (krb_rd_req): Add appropriate #ifdef so that this code
names[0] = "libdefaults";
names[1] = "krb4_srvtab";
names[2] = 0;
- if (krb5__krb4_context &&
- (retval = profile_get_values(krb5__krb4_context->profile, names,
- &full_name))
- && retval == 0 && full_name && full_name[0]) {
- retname = strdup(full_name[0]);
- for (cpp = full_name; *cpp; cpp++)
- krb5_xfree(*cpp);
- krb5_xfree(full_name);
- }else {
- retname = strdup(default_srvtabname);
+ if (krb5__krb4_context) {
+ retval = profile_get_values(krb5__krb4_context->profile, names,
+ &full_name);
+ if (retval == 0 && full_name && full_name[0]) {
+ retname = strdup(full_name[0]);
+ for (cpp = full_name; *cpp; cpp++)
+ krb5_xfree(*cpp);
+ krb5_xfree(full_name);
+ return retname;
+ }
}
+ retname = strdup(default_srvtabname);
return retname;
}