diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2000-08-14 20:03:22 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2000-08-14 20:03:22 +0000 |
| commit | f4fca22706304b38b67c53f1fb48d4c2d0ce58f3 (patch) | |
| tree | f1c476fb4fd0c6774aaa80bc926ef588a06de574 /src | |
| parent | a638c224d236f36afb4a294148f8129de978d29a (diff) | |
| download | krb5-f4fca22706304b38b67c53f1fb48d4c2d0ce58f3.tar.gz krb5-f4fca22706304b38b67c53f1fb48d4c2d0ce58f3.tar.xz krb5-f4fca22706304b38b67c53f1fb48d4c2d0ce58f3.zip | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb4/cr_tkt.c | 7 |
1 files 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 <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 */ |
