summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1995-04-25 00:39:32 +0000
committerEzra Peisach <epeisach@mit.edu>1995-04-25 00:39:32 +0000
commit141612a7b67b1f22cd15b74f97eda99c1f35c585 (patch)
treef9e8f9080b8bbb62ee69b48450ebc015fd139c65 /src
parent805486bb5dd93cd209466d2602e465b9781b430d (diff)
downloadkrb5-141612a7b67b1f22cd15b74f97eda99c1f35c585.tar.gz
krb5-141612a7b67b1f22cd15b74f97eda99c1f35c585.tar.xz
krb5-141612a7b67b1f22cd15b74f97eda99c1f35c585.zip
Don't deref NULL pointer if profile_get_values returns NULL.
(i.e. when the profile file is missing) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5462 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/os/ChangeLog5
-rw-r--r--src/lib/krb5/os/locate_kdc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog
index c13b4af41a..e528446063 100644
--- a/src/lib/krb5/os/ChangeLog
+++ b/src/lib/krb5/os/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 24 17:20:14 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * locate_kdc.c (krb5_locate_kdc): Don't deref NULL pointer
+ returned from profile_get_values if profile is not set.
+
Sat Apr 22 00:11:12 1995 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in, configure.in, t_std_conf.c: Add test program to
diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c
index f245ad637f..b13f65d1ab 100644
--- a/src/lib/krb5/os/locate_kdc.c
+++ b/src/lib/krb5/os/locate_kdc.c
@@ -77,7 +77,7 @@ krb5_locate_kdc(context, realm, addr_pp, naddrs)
sec_udpport = 0;
count = 0;
- while (hostlist[count])
+ while (hostlist && hostlist[count])
count++;
if (count == 0) {