- /* If there is an auth record in the config file matching the
- * authenticator we received, then accept it. If there's no
- * auth record, assume [master]@[local realm].
- */
- if (first = p = config_lookup("auth")) {
- do {
- kname_parse(aname, ainst, arealm, p);
- if (strcmp(aname, ad.pname) ||
- strcmp(ainst, ad.pinst) ||
- strcmp(arealm, ad.prealm))
- p = config_lookup("auth");
- else
- p = first;
- } while (p != first);
- } else {
- strcpy(aname, master);
- strcpy(ainst, "");
- if (krb_get_lrealm(arealm,1))
- strcpy(arealm, KRB_REALM);
+ /* If there is an auth record in the config file matching the
+ * authenticator we received, then accept it. If there's no
+ * auth record, assume [master]@[local realm].
+ */
+ if ((first = p = config_lookup("auth")))
+ {
+ do
+ {
+ kname_parse(aname, ainst, arealm, p);
+ if (strcmp(aname, ad.pname) ||
+ strcmp(ainst, ad.pinst) ||
+ strcmp(arealm, ad.prealm))
+ p = config_lookup("auth");
+ else
+ p = first;
+ }
+ while (p != first);