Avoid deferencing group_plugin if it is NULL in group_plugin_query().
This should not happen.
This commit is contained in:
@@ -183,6 +183,8 @@ int
|
|||||||
group_plugin_query(const char *user, const char *group,
|
group_plugin_query(const char *user, const char *group,
|
||||||
const struct passwd *pwd)
|
const struct passwd *pwd)
|
||||||
{
|
{
|
||||||
|
if (group_plugin == NULL)
|
||||||
|
return FALSE;
|
||||||
return (group_plugin->query)(user, group, pwd);
|
return (group_plugin->query)(user, group, pwd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user