From 704e4bfe10397d27f1c38c36da3be08eeb49194c Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 16 Jan 1998 13:21:56 +0000 Subject: [PATCH] * 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 --- src/kdc/ChangeLog | 6 ++++++ src/kdc/do_tgs_req.c | 3 +++ 2 files changed, 9 insertions(+) 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 + + * 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 * 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 : "", sname ? sname : "", tmp ? tmp : ""); + errcode = KRB5KDC_ERR_SERVER_NOMATCH; goto cleanup; } -- 2.26.2