From: Nathan Neulinger Date: Tue, 25 Mar 2003 21:10:40 +0000 (+0000) Subject: rxkad2b-allow-no-kvno-20030325 X-Git-Tag: openafs-devel-1_3_50~295 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=45dd8988f28ff573200136edda16d5592a757bff;p=packages%2Fo%2Fopenafs.git rxkad2b-allow-no-kvno-20030325 allow a missing kvno field to work usefully --- diff --git a/src/rxkad/ticket5.c b/src/rxkad/ticket5.c index 3f6d531ec..5942934a8 100644 --- a/src/rxkad/ticket5.c +++ b/src/rxkad/ticket5.c @@ -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);