Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed Oct 6, 2021
1 parent 5cb1410 commit b3bd068
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hydra-cisco.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#endif

extern char *HYDRA_EXIT;
char *buf = NULL;
static char *buf = NULL;

int32_t start_cisco(int32_t s, char *ip, int32_t port, unsigned char options, char *miscptr, FILE *fp) {
char *empty = "";
Expand Down
2 changes: 1 addition & 1 deletion hydra-vnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int32_t vnc_client_version = RFB33;
int32_t failed_auth = 0;

extern char *HYDRA_EXIT;
char *buf;
static char *buf;

/*
* Encrypt CHALLENGESIZE bytes in memory using a password.
Expand Down
14 changes: 7 additions & 7 deletions hydra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,10 @@ int main(int argc, char *argv[]) {
SERVICES = hydra_string_replace(SERVICES, "radmin2 ", "");
strcat(unsupported, "radmin2 ");
#endif
#ifndef LIBFREERDP
SERVICES = hydra_string_replace(SERVICES, "rdp ", "");
strcat(unsupported, "rdp ");
#endif
#ifndef LIBSAPR3
SERVICES = hydra_string_replace(SERVICES, "sapr3 ", "");
strcat(unsupported, "sapr3 ");
Expand Down Expand Up @@ -2267,11 +2271,6 @@ int main(int argc, char *argv[]) {
strcat(unsupported, "SSL-services (ftps, sip, rdp, oracle-services, ...) ");
#endif

#ifndef LIBFREERDP
// for rdp
SERVICES = hydra_string_replace(SERVICES, " rdp", "");
#endif

#ifndef HAVE_MATH_H
if (strlen(unsupported) > 0)
strcat(unsupported, "and ");
Expand Down Expand Up @@ -3940,9 +3939,10 @@ int main(int argc, char *argv[]) {
}
freeaddrinfo(res);
}
// restore device information if present
// restore device information if present (overwrite null bytes)
if (device != NULL) {
*(device - 1) = '%';
char *tmpptr = device - 1;
*tmpptr = '%'; // you can ignore the compiler warning
fprintf(stderr, "[WARNING] not all modules support BINDTODEVICE for IPv6 "
"link local addresses, e.g. SSH does not\n");
}
Expand Down

0 comments on commit b3bd068

Please sign in to comment.