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

« back to all changes in this revision

Viewing changes to src/lib/krb5/krb/ser_adata.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
 * lib/krb5/krb/ser_adata.c
3
3
 *
4
 
 * Copyright 1995 by the Massachusetts Institute of Technology.
 
4
 * Copyright 1995, 2008 by the Massachusetts Institute of Technology.
5
5
 * All Rights Reserved.
6
6
 *
7
7
 * Export of this software from the United States of America may
151
151
 
152
152
        /* Get a authdata */
153
153
        if ((remain >= (2*sizeof(krb5_int32))) &&
154
 
            (authdata = (krb5_authdata *) malloc(sizeof(krb5_authdata)))) {
155
 
            memset(authdata, 0, sizeof(krb5_authdata));
 
154
            (authdata = (krb5_authdata *) calloc(1, sizeof(krb5_authdata)))) {
156
155
 
157
156
            /* Get the ad_type */
158
157
            (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);