diff options
| author | Tom Yu <tlyu@mit.edu> | 1998-01-16 13:21:56 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 1998-01-16 13:21:56 +0000 |
| commit | 704e4bfe10397d27f1c38c36da3be08eeb49194c (patch) | |
| tree | 0b3b5475fd8858f98c574d39398f91f21228c6d0 /src | |
| parent | 90f301b221e96cc68e0458ef49648cab50107724 (diff) | |
| download | krb5-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')
| -rw-r--r-- | src/kdc/ChangeLog | 6 | ||||
| -rw-r--r-- | src/kdc/do_tgs_req.c | 3 |
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; } |
