ticket: 1657
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15684
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-07-11 Alexandra Ellwood <lxs@mit.edu>
+
+ * RealmsConfig-glue.c: Check for NULL realm argument and n
+ not equal to 1. Fill in realm with an empty string on error
+ in case the caller doesn't check the return value.
+
2003-07-11 Alexandra Ellwood <lxs@mit.edu>
* RealmsConfig-glue.c: Don't fail when krb5.conf is valid
char krbConfLocalRealm[REALM_SZ];
int krbConfHasLocalRealm = 0;
+ if ((realm == NULL) || (n != 1)) { result = KFAILURE; }
+
+ if (result == KSUCCESS) {
+ /* Some callers don't check the return value so we initialize
+ * to an empty string in case it never gets filled in. */
+ realm [0] = '\0';
+ }
+
if (result == KSUCCESS) {
int profileErr = krb_get_profile (&profile);