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