Make this work with kvno 0 and no kvno
This commit is contained in:
@@ -1194,9 +1194,7 @@ tgs_parse_request(krb5_context context,
|
||||
krbtgt_kvno = ap_req.ticket.enc_part.kvno ? *ap_req.ticket.enc_part.kvno : 0;
|
||||
ret = _kdc_db_fetch(context, config, princ, HDB_F_GET_KRBTGT,
|
||||
&krbtgt_kvno, NULL, krbtgt);
|
||||
krbtgt_kvno_try = ap_req.ticket.enc_part.kvno ?
|
||||
*ap_req.ticket.enc_part.kvno :
|
||||
(*krbtgt)->entry.kvno;
|
||||
krbtgt_kvno_try = krbtgt_kvno ? krbtgt_kvno : (*krbtgt)->entry.kvno;
|
||||
|
||||
if (ret == HDB_ERR_NOT_FOUND_HERE) {
|
||||
/* XXX Factor out this unparsing of the same princ all over */
|
||||
|
Reference in New Issue
Block a user