mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
rxkad2b-allow-no-kvno-20030325
allow a missing kvno field to work usefully
This commit is contained in:
parent
3fa5f389b2
commit
45dd8988f2
@ -236,10 +236,13 @@ int tkt_DecodeTicket5(char *ticket, afs_int32 ticket_len,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Find the real service key version number */
|
/* If kvno is null, it's probably not included because it was kvno==0
|
||||||
if (t5.enc_part.kvno == NULL)
|
in the ticket */
|
||||||
goto bad_ticket;
|
if (t5.enc_part.kvno == NULL ) {
|
||||||
|
v5_serv_kvno = 0;
|
||||||
|
} else {
|
||||||
v5_serv_kvno = *t5.enc_part.kvno;
|
v5_serv_kvno = *t5.enc_part.kvno;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
code = (*get_key)(get_key_rock, v5_serv_kvno, &serv_key);
|
code = (*get_key)(get_key_rock, v5_serv_kvno, &serv_key);
|
||||||
|
Loading…
Reference in New Issue
Block a user