+Mon Nov 4 21:16:01 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * alt_prof.c (krb5_aprof_init): If the user specifies the config
+ file using a configuration file, it must exist.
+ Otherwise, krb5_aprof_init will return an error.
+ (kadm5_get_config_params): If aprof_init returns an error,
+ it should return an error as well.
+
Wed Nov 6 17:45:43 1996 Barry Jaspan <bjaspan@mit.edu>
* kadm_rpc_xdr.c (xdr_krb5_principal): handle a NULL principal
profile = (profile_t) NULL;
if (envname) {
if ((namelist[0] = getenv(envname))) {
- if (!(kret = profile_init(namelist, &profile))) {
- *acontextp = (krb5_pointer) profile;
- return(0);
- }
+ kret = profile_init(namelist, &profile);
+ if (kret)
+ return kret;
+ *acontextp = (krb5_pointer) profile;
+ return 0;
}
}
profile = (profile_t) NULL;
- if (fname && !(kret = profile_init_path(fname, &profile))) {
+ if (fname) {
+ kret = profile_init_path(fname, &profile);
+ if (kret == ENOENT) {
+ profile = 0;
+ } else if (kret)
+ return kret;
*acontextp = (krb5_pointer) profile;
- return(0);
+ return 0;
}
- return(kret);
+ return 0;
}
/*
if (context->profile_secure == TRUE) envname = 0;
}
- /* ignore failures */
- (void) krb5_aprof_init(filename, envname, &aprofile);
+ kret = krb5_aprof_init(filename, envname, &aprofile);
+ if (kret)
+ goto cleanup;
/* Initialize realm parameters */
hierarchy[0] = "realms";