~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

Viewing changes to sql/password.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
531
531
  mysql_sha1_reset(&sha1_context);
532
532
  mysql_sha1_input(&sha1_context, buf, SHA1_HASH_SIZE);
533
533
  mysql_sha1_result(&sha1_context, hash_stage2_reassured);
534
 
  return memcmp(hash_stage2, hash_stage2_reassured, SHA1_HASH_SIZE);
 
534
  return test(memcmp(hash_stage2, hash_stage2_reassured, SHA1_HASH_SIZE));
535
535
}
536
536
 
537
537