mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 22:03:46 -07:00
fix some problems
This commit is contained in:
parent
cd814fe6af
commit
c771c6397b
1 changed files with 2 additions and 2 deletions
|
@ -501,8 +501,8 @@ int32_t service_http_init(char *ip, int32_t sp, unsigned char options, char *mis
|
|||
|
||||
match_status_code[pos++] = value;
|
||||
|
||||
if (pos > MAX_STATUS_CODE_SIZE) {
|
||||
hydra_report(stderr, "Match up to %d status codes.", MAX_STATUS_CODE_SIZE);
|
||||
if (pos >= MAX_STATUS_CODE_SIZE) {
|
||||
hydra_report(stderr, "Status code quantity must be less than %d", MAX_STATUS_CODE_SIZE);
|
||||
free(cp);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue