compile fix
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user