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

« back to all changes in this revision

Viewing changes to src/lib/krb5/krb/ser_actx.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_actx.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
371
371
        /* Get memory for the auth_context */
372
372
        if ((remain >= (5*sizeof(krb5_int32))) &&
373
373
            (auth_context = (krb5_auth_context)
374
 
             malloc(sizeof(struct _krb5_auth_context)))) {
375
 
            memset(auth_context, 0, sizeof(struct _krb5_auth_context));
 
374
             calloc(1, sizeof(struct _krb5_auth_context)))) {
376
375
 
377
376
            /* Get auth_context_flags */
378
377
            (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
551
550
        kret = krb5_ser_authdata_init(kcontext);
552
551
    if (!kret)
553
552
        kret = krb5_ser_address_init(kcontext);
 
553
#ifndef LEAN_CLIENT
554
554
    if (!kret)
555
555
        kret = krb5_ser_authenticator_init(kcontext);
 
556
#endif
556
557
    if (!kret)
557
558
        kret = krb5_ser_checksum_init(kcontext);
558
559
    if (!kret)