* do_tgs_req.c: Add some explicit settings of errcode so that the
authorTom Yu <tlyu@mit.edu>
Fri, 16 Jan 1998 13:21:56 +0000 (13:21 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 16 Jan 1998 13:21:56 +0000 (13:21 +0000)
  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
src/kdc/do_tgs_req.c

index 3025866c0e07b0b9303c865705dc33faabed3df1..80213567e6ab7b708b80b640a87ab9d15d541c8c 100644 (file)
@@ -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
index f0b6d8b1ca7645ce3230a72676101957c84f5c1a..ff6f214d3d45e2c5871cc40203e4a5c19fa2685d 100644 (file)
@@ -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;
        }