summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kdc/ChangeLog6
-rw-r--r--src/kdc/do_tgs_req.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog
index 3025866c0..80213567e 100644
--- a/src/kdc/ChangeLog
+++ b/src/kdc/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jan 16 03:33:50 1998 Tom Yu <tlyu@mit.edu>
+
+ * do_tgs_req.c: Add some explicit settings of errcode so that the
+ cleanup code doesn't try to construct a bogus error reply, which
+ was causing coredumps in the lookaside code.
+
Thu Dec 11 23:29:41 1997 Tom Yu <tlyu@mit.edu>
* kerberos_v4.c: Don't include sys/socket.h or netdb.h, as krb.h
diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c
index f0b6d8b1c..ff6f214d3 100644
--- a/src/kdc/do_tgs_req.c
+++ b/src/kdc/do_tgs_req.c
@@ -132,6 +132,7 @@ krb5_data **response; /* filled in with a response packet */
}
if (!header_ticket) {
+ errcode = KRB5_NO_TKT_SUPPLIED; /* XXX? */
status="UNEXPECTED NULL in header_ticket";
goto cleanup;
}
@@ -421,6 +422,7 @@ tgt_again:
if (!(scratch.data =
malloc(request->authorization_data.ciphertext.length))) {
status = "AUTH_NOMEM";
+ errcode = ENOMEM;
goto cleanup;
}
/* do any necessary key pre-processing */
@@ -531,6 +533,7 @@ tgt_again:
cname ? cname : "<unknown client>",
sname ? sname : "<unknown server>",
tmp ? tmp : "<unknown>");
+ errcode = KRB5KDC_ERR_SERVER_NOMATCH;
goto cleanup;
}