mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
Merge pull request #860 from neo-one0873/patch-1
fix: array proxy_string_port may out of bound
This commit is contained in:
commit
888da899f9
1 changed files with 1 additions and 1 deletions
2
hydra.c
2
hydra.c
|
@ -2045,7 +2045,7 @@ void process_proxy_line(int32_t type, char *string) {
|
||||||
string[strlen(string) - 1] = 0;
|
string[strlen(string) - 1] = 0;
|
||||||
if (string[strlen(string) - 1] == '\r')
|
if (string[strlen(string) - 1] == '\r')
|
||||||
string[strlen(string) - 1] = 0;
|
string[strlen(string) - 1] = 0;
|
||||||
if (proxy_count > MAX_PROXY_COUNT) {
|
if (proxy_count >= MAX_PROXY_COUNT) {
|
||||||
fprintf(stderr, "[WARNING] maximum amount of proxies loaded, ignoring this entry: %s\n", string);
|
fprintf(stderr, "[WARNING] maximum amount of proxies loaded, ignoring this entry: %s\n", string);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue