Avoid deferencing group_plugin if it is NULL in group_plugin_query().

This should not happen.
This commit is contained in:
Todd C. Miller
2010-11-18 17:09:57 -05:00
parent 4b2fb225c0
commit c73306983c

View File

@@ -183,6 +183,8 @@ int
group_plugin_query(const char *user, const char *group,
const struct passwd *pwd)
{
if (group_plugin == NULL)
return FALSE;
return (group_plugin->query)(user, group, pwd);
}