summaryrefslogtreecommitdiffstats
path: root/src/kdc/do_tgs_req.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1998-01-16 13:21:56 +0000
committerTom Yu <tlyu@mit.edu>1998-01-16 13:21:56 +0000
commit704e4bfe10397d27f1c38c36da3be08eeb49194c (patch)
tree0b3b5475fd8858f98c574d39398f91f21228c6d0 /src/kdc/do_tgs_req.c
parent90f301b221e96cc68e0458ef49648cab50107724 (diff)
downloadkrb5-704e4bfe10397d27f1c38c36da3be08eeb49194c.tar.gz
krb5-704e4bfe10397d27f1c38c36da3be08eeb49194c.tar.xz
krb5-704e4bfe10397d27f1c38c36da3be08eeb49194c.zip
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10352 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/do_tgs_req.c')
-rw-r--r--src/kdc/do_tgs_req.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c
index f0b6d8b1ca..ff6f214d3d 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;
}