~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.cc

  • Committer: Stewart Smith
  • Date: 2009-10-12 05:13:54 UTC
  • mfrom: (1178 staging)
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: stewart@flamingspork.com-20091012051354-2n7zpid9f67ddsa0
mergeĀ lp:drizzle/build

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
 
34
34
std::vector<plugin::Authentication *> all_authentication;
35
 
bool are_plugins_loaded= false;
36
35
 
37
36
 
38
37
bool plugin::Authentication::addPlugin(plugin::Authentication *auth)
69
68
                                             const char *password)
70
69
{
71
70
  /* If we never loaded any auth plugins, just return true */
72
 
  if (are_plugins_loaded != true)
 
71
  if (all_authentication.size() == 0)
73
72
    return true;
74
73
 
75
74
  /* Use find_if instead of foreach so that we can collect return codes */