realm, which was botched due to a buffer-overflow patch.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14708
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-08-13 Tom Yu <tlyu@mit.edu>
+
+ * acl_files.c (canon;): Properly handle appending of the local
+ realm, which was botched due to a buffer-overflow patch.
+
2001-11-19 Ezra Peisach <epeisach@mit.edu>
* kadm_server.h: Update prototype for convert_kadm5_to_kadm.
return;
}
} else if(krb_get_lrealm(realm, 1) != KSUCCESS) {
- if(canon + strlen(realm) < canon_save + MAX_PRINCIPAL_SIZE) {
+ if(canon + strlen(KRB_REALM) < canon_save + MAX_PRINCIPAL_SIZE) {
strcpy(canon, KRB_REALM);
} else {
strcpy(canon, "");
return;
}
+ } else {
+ if (canon + strlen(realm) < canon_save + MAX_PRINCIPAL_SIZE) {
+ strcpy(canon, realm);
+ } else {
+ strcpy(canon, "");
+ return;
+ }
}
}