diff options
| author | Greg Hudson <ghudson@mit.edu> | 2010-10-02 11:48:06 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2010-10-02 11:48:06 +0000 |
| commit | 872419b69b785100e3b8722d41e32a4470f32337 (patch) | |
| tree | 44b44e8967df39bf7ff37f70a874533cd9d29d34 /src/lib | |
| parent | a987a37dd343881a6130bd715d64b486bd750ebd (diff) | |
In the krb5_kuserok implementation, fix an unintentional type change
to "gobble" (was an int, was accidentally changed to a char) which
could result in an infinite loop.
ticket: 6792
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24413 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/os/kuserok.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/krb5/os/kuserok.c b/src/lib/krb5/os/kuserok.c index 985bb1412..e1619f394 100644 --- a/src/lib/krb5/os/kuserok.c +++ b/src/lib/krb5/os/kuserok.c @@ -93,10 +93,10 @@ get_k5login_filename(krb5_context context, const char *luser, static enum result k5login_ok(krb5_context context, krb5_principal principal, const char *luser) { - int authoritative = TRUE; + int authoritative = TRUE, gobble; enum result result = REJECT; char *filename = NULL, *princname = NULL; - char gobble, *newline, linebuf[BUFSIZ], pwbuf[BUFSIZ]; + char *newline, linebuf[BUFSIZ], pwbuf[BUFSIZ]; struct stat sbuf; struct passwd pwx, *pwd; FILE *fp = NULL; |
