summaryrefslogtreecommitdiff
path: root/kerberosIV
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-02-20 02:51:36 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-02-20 02:51:36 +0000
commit6cc6f28f83948ed62ec9d171a7fa4c300747fe2d (patch)
treebb4d12693739c14b1dcaa380b2039a11a33be310 /kerberosIV
parent1509f24a79a8462175dff5202b271c1f92792e74 (diff)
fail if you don't have /etc/kerberosIV/krb.conf
Diffstat (limited to 'kerberosIV')
-rw-r--r--kerberosIV/krb/get_krbrlm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kerberosIV/krb/get_krbrlm.c b/kerberosIV/krb/get_krbrlm.c
index 3498f486750..2da133daeff 100644
--- a/kerberosIV/krb/get_krbrlm.c
+++ b/kerberosIV/krb/get_krbrlm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: get_krbrlm.c,v 1.12 1997/12/22 15:02:06 art Exp $ */
+/* $OpenBSD: get_krbrlm.c,v 1.13 1998/02/20 02:51:35 art Exp $ */
/* $KTH: get_krbrlm.c,v 1.16 1997/05/02 01:26:22 assar Exp $ */
/*
@@ -74,6 +74,8 @@ krb_get_lrealm(char *r, int n)
if (n > 1)
return(KFAILURE); /* Temporary restriction */
+
+ r[0] = '#';
for (i = 0; krb_get_krbconf(i, file, sizeof(file)) == 0; i++)
if (krb_get_lrealm_f(r, n, file) == KSUCCESS)