strncmp fix

This commit is contained in:
van Hauser 2014-09-12 10:38:59 +02:00
commit 00637b28d1
2 changed files with 85 additions and 3 deletions

View file

@ -2925,7 +2925,7 @@ int main(int argc, char *argv[]) {
hydra_options.port = port;
}
if (hydra_options.ssl == 1 && strncmp(hydra_options.service, "http-", 5 == 0) && hydra_options.port == 443)
if (hydra_options.ssl == 1 && strncmp(hydra_options.service, "http-", 5) == 0 && hydra_options.port == 443)
fprintf(stderr,
"[WARNING] you specified port 443 for attacking a http service, however did not specify the -S ssl switch nor used https-..., therefore using plain HTTP\n");