* cr_tkt.c (krb_cr_tkt_int): When prototypes were changed to not
authorEzra Peisach <epeisach@mit.edu>
Mon, 14 Aug 2000 20:03:22 +0000 (20:03 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 14 Aug 2000 20:03:22 +0000 (20:03 +0000)
        include a narrow prototype, the flags were being sent OTW as four
        bytes instead of one.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12621 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/cr_tkt.c

index bb6b611f53366b90bfc8083eaafecafa3d89cff0..62d5b5438168e8ac148926277adaa0cb1d9c9317 100644 (file)
@@ -16,7 +16,7 @@
 #include <krb5.h>
 
 static int
-krb_cr_tkt_int PROTOTYPE((KTEXT tkt, unsigned int flags, char *pname, 
+krb_cr_tkt_int PROTOTYPE((KTEXT tkt, unsigned int flags_in, char *pname, 
                          char *pinstance, char *prealm, long paddress,
                          char *session, int life, long time_sec, 
                          char *sname, char *sinstance, C_Block key, 
@@ -123,10 +123,10 @@ krb_cr_tkt_krb5(tkt, flags, pname, pinstance, prealm, paddress,
 }
 
 static int
-krb_cr_tkt_int(tkt, flags, pname, pinstance, prealm, paddress,
+krb_cr_tkt_int(tkt, flags_in, pname, pinstance, prealm, paddress,
               session, life, time_sec, sname, sinstance, key, k5key)
     KTEXT   tkt;                /* Gets filled in by the ticket */
-    unsigned int flags;        /* Various Kerberos flags */
+    unsigned int flags_in;      /* Various Kerberos flags */
     char    *pname;             /* Principal's name */
     char    *pinstance;         /* Principal's instance */
     char    *prealm;            /* Principal's authentication domain */
@@ -141,6 +141,7 @@ krb_cr_tkt_int(tkt, flags, pname, pinstance, prealm, paddress,
 {
     Key_schedule key_s;
     register char *data;        /* running index into ticket */
+    unsigned char flags = flags_in & 0xFF; /* Must be 1 byte */
 
     tkt->length = 0;            /* Clear previous data  */