From f4fca22706304b38b67c53f1fb48d4c2d0ce58f3 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 14 Aug 2000 20:03:22 +0000 Subject: [PATCH] * 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 --- src/lib/krb4/cr_tkt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.26.2