more pre-8.0 fixes

This commit is contained in:
vanhauser-thc 2014-04-28 13:05:35 +02:00
parent 163a499bfe
commit 94893bd698
26 changed files with 4079 additions and 5 deletions

View file

@ -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')