summaryrefslogtreecommitdiffstats
path: root/src/admin
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-10-14 23:34:38 +0000
committerTheodore Tso <tytso@mit.edu>1994-10-14 23:34:38 +0000
commit2c022180fccc1b082c5ad5f383c2b0a50013f339 (patch)
tree86c03e9897809489f298969abcf3667490c57722 /src/admin
parente4d3983a4b6d8aa1ab6d9cea3248936b43032475 (diff)
When scanning a database entry, read fail_auth_count into a temporary
integer variable, and then copy that into entry.fail_auth_count, which is a char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4513 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/admin')
-rw-r--r--src/admin/edit/ChangeLog7
-rw-r--r--src/admin/edit/dump.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/src/admin/edit/ChangeLog b/src/admin/edit/ChangeLog
index 49c799207..e910255ce 100644
--- a/src/admin/edit/ChangeLog
+++ b/src/admin/edit/ChangeLog
@@ -1,3 +1,10 @@
+Fri Oct 14 23:31:49 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * dump.c (load_db): When scanning a database entry, read
+ fail_auth_count into a temporary integer variable, and
+ then copy that into entry.fail_auth_count, which is a
+ char.
+
Fri Oct 7 00:01:40 1994 Theodore Y. Ts'o (tytso@dcl)
* kdb5_edit.c (kdb5_edit_Init): Don't let errors in
diff --git a/src/admin/edit/dump.c b/src/admin/edit/dump.c
index afc0a8f0e..f56ebd6f0 100644
--- a/src/admin/edit/dump.c
+++ b/src/admin/edit/dump.c
@@ -257,7 +257,7 @@ void load_db(argc, argv)
int load_error = 0;
int lineno = 0;
int stype;
- int tmp1, tmp2;
+ int tmp1, tmp2, tmp3;
char buf[64]; /* Must be longer than ld_vers */
if (argc != 3) {
@@ -407,7 +407,7 @@ void load_db(argc, argv)
&tmp1, &entry.max_life, &entry.max_renewable_life,
&tmp2, &entry.expiration, &entry.pw_expiration,
&entry.last_pwd_change, &entry.last_success,
- &entry.last_failed, &entry.fail_auth_count) != 10) {
+ &entry.last_failed, &tmp3) != 10) {
fprintf(stderr, "Couldn't parse line #%d\n",
lineno);
load_error++;
@@ -427,6 +427,7 @@ void load_db(argc, argv)
}
entry.kvno = tmp1;
entry.mkvno = tmp2;
+ entry.fail_auth_count = tmp3;
entry.salt_type = stype;
for (i=0; i < salt_len; i++) {
if (fscanf(f, "%02x", &tmp1) != 1) {