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

« back to all changes in this revision

Viewing changes to src/lib/krb5/krb/recvauth.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:
77
77
            if (strcmp(inbuf.data, sendauth_version)) {
78
78
                problem = KRB5_SENDAUTH_BADAUTHVERS;
79
79
            }
80
 
            krb5_xfree(inbuf.data);
 
80
            free(inbuf.data);
81
81
        }
82
82
        if (flags & KRB5_RECVAUTH_BADAUTHVERS)
83
83
            problem = KRB5_SENDAUTH_BADAUTHVERS;
94
94
        if (version && !problem)
95
95
            *version = inbuf;
96
96
        else
97
 
            krb5_xfree(inbuf.data);
 
97
            free(inbuf.data);
98
98
        /*
99
99
         * OK, now check the problem variable.  If it's zero, we're
100
100
         * fine and we can continue.  Otherwise, we have to signal an
165
165
    if (!problem) {
166
166
        problem = krb5_rd_req(context, auth_context, &inbuf, server,
167
167
                              keytab, &ap_option, ticket);
168
 
        krb5_xfree(inbuf.data);
 
168
        free(inbuf.data);
169
169
    }
170
170
        
171
171
    /*
213
213
 
214
214
    retval = krb5_write_message(context, fd, &outbuf);
215
215
    if (outbuf.data) {
216
 
        krb5_xfree(outbuf.data);
 
216
        free(outbuf.data);
217
217
        /* We sent back an error, we need cleanup then return */
218
218
        retval = problem;
219
219
        goto cleanup;
227
227
            return(retval);
228
228
        }
229
229
        retval = krb5_write_message(context, fd, &outbuf);
230
 
        krb5_xfree(outbuf.data);
 
230
        free(outbuf.data);
231
231
    }
232
232
 
233
233
cleanup:;