compile fix

This commit is contained in:
Luke Howard
2011-04-08 12:19:25 +10:00
parent 6c6e483e00
commit 1a8bb5143c

View File

@@ -49,14 +49,9 @@ int
gssapi_userok(void *app_data, char *username) gssapi_userok(void *app_data, char *username)
{ {
struct gssapi_data *data = app_data; struct gssapi_data *data = app_data;
OM_uint32 major, minor;
int userok;
major = gss_userok(&minor, data->client_name, username, &userok); /* Yes, this logic really is inverted. */
if (GSS_ERROR(major) || !userok) return !gss_userok(data->client_name, username);
return 1;
return 0;
} }
int int