mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 18:48:17 -07:00
more pre-8.0 fixes
This commit is contained in:
parent
163a499bfe
commit
94893bd698
26 changed files with 4079 additions and 5 deletions
|
@ -39,7 +39,8 @@ int start_rlogin(int s, char *ip, int port, unsigned char options, char *miscptr
|
|||
return 4;
|
||||
}
|
||||
buffer[0] = 0;
|
||||
ret = hydra_recv(s, buffer, sizeof(buffer) - 1);
|
||||
if ((ret = hydra_recv(s, buffer, sizeof(buffer) - 1)) >= 0)
|
||||
buffer[ret] = 0;
|
||||
/* 0x00 is sent but hydra_recv transformed it */
|
||||
if (strlen(buffer) == 0) {
|
||||
ret = hydra_recv(s, buffer, sizeof(buffer) - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue