~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

MergeĀ Eric

Show diffs side-by-side

added added

removed removed

Lines of Context:
673
673
 
674
674
bool Session::checkUser(const char *passwd, uint32_t passwd_len, const char *in_db)
675
675
{
676
 
  if (passwd_len != 0 && passwd_len != SCRAMBLE_LENGTH)
677
 
  {
678
 
    my_error(ER_HANDSHAKE_ERROR, MYF(0), getSecurityContext().getIp().c_str());
679
 
    return false;
680
 
  }
681
 
 
682
676
  const string passwd_str(passwd, passwd_len);
683
677
  bool is_authenticated=
684
678
    plugin::Authentication::isAuthenticated(getSecurityContext(),