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

« back to all changes in this revision

Viewing changes to src/appl/bsd/forward.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:
27
27
 
28
28
#include "k5-int.h"
29
29
 
30
 
#define SKIP_V4_PROTO /* To skip the krb4 prototypes */
31
30
#include "defines.h"
32
31
 
33
32
/* Decode, decrypt and store the forwarded creds in the local ccache. */
54
53
     * the rlogind or rshd. Set the environment variable as well.
55
54
     */
56
55
  
57
 
    sprintf(ccname, "FILE:/tmp/krb5cc_p%ld", (long) getpid());
 
56
    snprintf(ccname, sizeof(ccname), "FILE:/tmp/krb5cc_p%ld", (long) getpid());
58
57
    setenv("KRB5CCNAME", ccname, 1);
59
58
  
60
59
    retval = krb5_cc_resolve(context, ccname, ccache);