svn rev #24413: trunk/src/lib/krb5/os/
ghudson@MIT.EDU
ghudson at MIT.EDU
Sat Oct 2 07:48:06 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=24413
Commit By: ghudson
Log Message:
ticket: 6792
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.
Changed Files:
U trunk/src/lib/krb5/os/kuserok.c
Modified: trunk/src/lib/krb5/os/kuserok.c
===================================================================
--- trunk/src/lib/krb5/os/kuserok.c 2010-10-02 11:34:27 UTC (rev 24412)
+++ trunk/src/lib/krb5/os/kuserok.c 2010-10-02 11:48:06 UTC (rev 24413)
@@ -93,10 +93,10 @@
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;
More information about the cvs-krb5
mailing list