~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/kdc/dispatch.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * kdc/dispatch.c
3
3
 *
4
 
 * Copyright 1990, 2007 by the Massachusetts Institute of Technology.
 
4
 * Copyright 1990 by the Massachusetts Institute of Technology.
5
5
 *
6
6
 * Export of this software from the United States of America may
7
7
 *   require a specific license from the United States Government.
92
92
            /*
93
93
             * setup_server_realm() sets up the global realm-specific data
94
94
             * pointer.
 
95
             * process_as_req frees the request if it is called
95
96
             */
96
97
            if (!(retval = setup_server_realm(as_req->server))) {
97
98
                retval = process_as_req(as_req, pkt, from, response);
98
99
            }
99
 
            krb5_free_kdc_req(kdc_context, as_req);
 
100
            else            krb5_free_kdc_req(kdc_context, as_req);
100
101
        }
101
102
    }
102
 
#ifdef KRB5_KRB4_COMPAT
103
 
    else if (pkt->data[0] == 4)         /* old version */
104
 
        retval = process_v4(pkt, from, response);
105
 
#endif
106
103
    else
107
104
        retval = KRB5KRB_AP_ERR_MSG_TYPE;
108
105
#ifndef NOCACHE