now, kinit and klist seems to work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@845 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -224,7 +224,8 @@ ret_principal(int fd,
|
||||
|
||||
p = ALLOC(1, krb5_principal_data);
|
||||
|
||||
ret_int32(fd, &p->type);
|
||||
if(ret_int32(fd, &p->type))
|
||||
return -1;
|
||||
ret_int32(fd, &p->ncomp);
|
||||
ret_data(fd, &p->realm);
|
||||
p->comp = ALLOC(p->ncomp, krb5_data);
|
||||
|
@@ -179,7 +179,7 @@ krb5_get_in_tkt(krb5_context context,
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
if(decode_AS_REP(resp.data, resp.length, &rep) < 0)
|
||||
if(decode_AS_REP(resp.data, resp.length, &rep.part1) < 0)
|
||||
return ASN1_PARSE_ERROR;
|
||||
|
||||
free (rep.part1.crealm);
|
||||
@@ -213,6 +213,8 @@ krb5_get_in_tkt(krb5_context context,
|
||||
decrypt_proc = decrypt_tkt;
|
||||
|
||||
err = (*decrypt_proc)(context, key, decryptarg, &rep);
|
||||
if (err)
|
||||
return err;
|
||||
memset (key->contents.data, 0, key->contents.length);
|
||||
krb5_data_free (&key->contents);
|
||||
free (key);
|
||||
|
Reference in New Issue
Block a user