Commit c72d5e80 authored by Sergei Golubchik's avatar Sergei Golubchik

mdev-212 sporadic main.connect failures in 5.3

don't cast implicitly an int to a char, when a boolean value is desired.
parent 1ff3a106
...@@ -503,7 +503,7 @@ check_scramble(const char *scramble_arg, const char *message, ...@@ -503,7 +503,7 @@ check_scramble(const char *scramble_arg, const char *message,
mysql_sha1_reset(&sha1_context); mysql_sha1_reset(&sha1_context);
mysql_sha1_input(&sha1_context, buf, SHA1_HASH_SIZE); mysql_sha1_input(&sha1_context, buf, SHA1_HASH_SIZE);
mysql_sha1_result(&sha1_context, hash_stage2_reassured); mysql_sha1_result(&sha1_context, hash_stage2_reassured);
return memcmp(hash_stage2, hash_stage2_reassured, SHA1_HASH_SIZE); return test(memcmp(hash_stage2, hash_stage2_reassured, SHA1_HASH_SIZE));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment