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
+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
}
if (!header_ticket) {
+ errcode = KRB5_NO_TKT_SUPPLIED; /* XXX? */
status="UNEXPECTED NULL in header_ticket";
goto cleanup;
}
if (!(scratch.data =
malloc(request->authorization_data.ciphertext.length))) {
status = "AUTH_NOMEM";
+ errcode = ENOMEM;
goto cleanup;
}
/* do any necessary key pre-processing */
cname ? cname : "<unknown client>",
sname ? sname : "<unknown server>",
tmp ? tmp : "<unknown>");
+ errcode = KRB5KDC_ERR_SERVER_NOMATCH;
goto cleanup;
}