< prev index next >

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

Print this page
rev 12539 : 8178794: Correct Kerberos ticket grants
Reviewed-by: coffeys, valeriep
Contributed-by: prasadarao.koppula@oracle.com

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -86,11 +86,11 @@
 
         check(false, req, rep);
 
         this.creds = new Credentials(rep.ticket,
                                 rep.cname,
-                                rep.ticket.sname,
+                                enc_part.sname,
                                 enc_part.key,
                                 enc_part.flags,
                                 enc_part.authtime,
                                 enc_part.starttime,
                                 enc_part.endtime,
< prev index next >