summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/file/ChangeLog5
-rw-r--r--src/lib/krb5/ccache/file/fcc_write.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/krb5/ccache/file/ChangeLog b/src/lib/krb5/ccache/file/ChangeLog
index 52cd41eda..3234f48d4 100644
--- a/src/lib/krb5/ccache/file/ChangeLog
+++ b/src/lib/krb5/ccache/file/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 7 16:58:59 1994 <tytso@rsx-11.mit.edu>
+
+ * fcc_write.c (krb5_fcc_store_addrs): If a null addresses is
+ passed in, don't core dump.
+
Fri Nov 18 17:22:51 1994 Theodore Y. Ts'o (tytso@dcl)
* fcc_read.c (krb5_fcc_read_principal): Fix to return correct
diff --git a/src/lib/krb5/ccache/file/fcc_write.c b/src/lib/krb5/ccache/file/fcc_write.c
index cbb092f6d..2633bd509 100644
--- a/src/lib/krb5/ccache/file/fcc_write.c
+++ b/src/lib/krb5/ccache/file/fcc_write.c
@@ -119,9 +119,11 @@ krb5_fcc_store_addrs(id, addrs)
krb5_int32 i, length = 0;
/* Count the number of components */
- temp = addrs;
- while (*temp++)
- length += 1;
+ if (addrs) {
+ temp = addrs;
+ while (*temp++)
+ length += 1;
+ }
ret = krb5_fcc_store_int32(id, length);
CHECK(ret);