svn rev #22158: branches/fast/src/kdc/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Apr 1 17:13:40 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22158
Commit By: hartmans
Log Message:
TGS error path can end up with null state if it fails too soon. In
this case do not call into FAST.
Changed Files:
U branches/fast/src/kdc/do_tgs_req.c
Modified: branches/fast/src/kdc/do_tgs_req.c
===================================================================
--- branches/fast/src/kdc/do_tgs_req.c 2009-04-01 21:13:38 UTC (rev 22157)
+++ branches/fast/src/kdc/do_tgs_req.c 2009-04-01 21:13:40 UTC (rev 22158)
@@ -972,7 +972,7 @@
krb5_data **response, const char *status)
{
krb5_error errpkt;
- krb5_error_code retval;
+ krb5_error_code retval = 0;
krb5_data *scratch;
errpkt.ctime = request->nonce;
@@ -997,7 +997,8 @@
}
errpkt.e_data.length = 0;
errpkt.e_data.data = NULL;
- retval = kdc_fast_handle_error(kdc_context, state, request, NULL, &errpkt);
+ if (state)
+ retval = kdc_fast_handle_error(kdc_context, state, request, NULL, &errpkt);
if (retval) {
free(scratch);
free(errpkt.text.data);
More information about the cvs-krb5
mailing list