src/share/classes/sun/security/krb5/KrbKdcRep.java

changeset 14203
d8bd882cfd2a
parent 14114
971263b8cd56
child 14222
5a272e10d7e7
     1.1 --- a/src/share/classes/sun/security/krb5/KrbKdcRep.java	Mon Aug 31 07:09:57 2020 +0100
     1.2 +++ b/src/share/classes/sun/security/krb5/KrbKdcRep.java	Sun May 31 10:13:04 2020 +0800
     1.3 @@ -134,12 +134,14 @@
     1.4              boolean reqPaReqEncPaRep = false;
     1.5              boolean repPaReqEncPaRepValid = false;
     1.6  
     1.7 -            for (PAData pa : req.pAData) {
     1.8 -                if (pa.getType() == Krb5.PA_REQ_ENC_PA_REP) {
     1.9 -                    // The KDC supports RFC 6806 and ENC-PA-REP was sent in
    1.10 -                    // the request (AS-REQ). A valid checksum is now required.
    1.11 -                    reqPaReqEncPaRep = true;
    1.12 -                    break;
    1.13 +            if (req.pAData != null) {
    1.14 +                for (PAData pa : req.pAData) {
    1.15 +                    if (pa.getType() == Krb5.PA_REQ_ENC_PA_REP) {
    1.16 +                        // The KDC supports RFC 6806 and ENC-PA-REP was sent in
    1.17 +                        // the request (AS-REQ). A valid checksum is now required.
    1.18 +                        reqPaReqEncPaRep = true;
    1.19 +                        break;
    1.20 +                    }
    1.21                  }
    1.22              }
    1.23  

mercurial