From: Ezra Peisach Date: Mon, 14 Aug 2000 20:03:22 +0000 (+0000) Subject: * cr_tkt.c (krb_cr_tkt_int): When prototypes were changed to not X-Git-Tag: krb5-1.3-alpha1~1919 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4fca22706304b38b67c53f1fb48d4c2d0ce58f3;p=krb5.git * cr_tkt.c (krb_cr_tkt_int): When prototypes were changed to not 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 --- diff --git a/src/lib/krb4/cr_tkt.c b/src/lib/krb4/cr_tkt.c index bb6b611f5..62d5b5438 100644 --- a/src/lib/krb4/cr_tkt.c +++ b/src/lib/krb4/cr_tkt.c @@ -16,7 +16,7 @@ #include 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 */