d91f615d36
From Michael Coulter <mjc@bitz.ca>
19 lines
707 B
Plaintext
19 lines
707 B
Plaintext
$OpenBSD: patch-hydra-mysql_c,v 1.1 2003/11/11 17:26:11 margarida Exp $
|
|
--- hydra-mysql.c.orig 2003-08-20 10:34:21.000000000 +0100
|
|
+++ hydra-mysql.c 2003-11-03 22:22:07.000000000 +0000
|
|
@@ -291,12 +291,13 @@ char *scramble(char *to, const char *mes
|
|
if (password && password[0])
|
|
{
|
|
char *to_start=to;
|
|
+ char extra;
|
|
hash_password(hash_pass,password);
|
|
hash_password(hash_message,message);
|
|
randominit(&rand_st,hash_pass[0] ^ hash_message[0], hash_pass[1] ^ hash_message[1]);
|
|
while (*message++)
|
|
*to++= (char) (floor(rnd(&rand_st)*31)+64);
|
|
- char extra=(char) (floor(rnd(&rand_st)*31));
|
|
+ extra=(char) (floor(rnd(&rand_st)*31));
|
|
while (to_start != to)
|
|
*(to_start++)^=extra;
|
|
}
|