mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -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
|
@ -5,7 +5,7 @@
|
|||
#endif
|
||||
|
||||
extern char *HYDRA_EXIT;
|
||||
char *buf;
|
||||
char *buf = NULL;
|
||||
|
||||
int start_cisco(int s, char *ip, int port, unsigned char options, char *miscptr, FILE * fp) {
|
||||
char *empty = "";
|
||||
|
@ -25,6 +25,8 @@ int start_cisco(int s, char *ip, int port, unsigned char options, char *miscptr,
|
|||
}
|
||||
sleep(1);
|
||||
do {
|
||||
if (buf != NULL)
|
||||
free(buf);
|
||||
if ((buf = hydra_receive_line(s)) == NULL)
|
||||
return 3;
|
||||
if (buf[strlen(buf) - 1] == '\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue