mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
Fix "make" error
Variable 'tmp' was moved to a higher scope in the parse_options function of hydra-http-form.c. This change was necessary to prevent duplicate declarations in the different switch case blocks. This PR fix "make" error : error: redefinition of ‘tmp’
This commit is contained in:
parent
e950212789
commit
15b1f93903
1 changed files with 3 additions and 3 deletions
|
@ -390,7 +390,7 @@ char *stringify_headers(ptr_header_node *ptr_head) {
|
|||
}
|
||||
|
||||
int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
||||
char *ptr, *ptr2;
|
||||
char *ptr, *ptr2, *tmp;
|
||||
|
||||
if (miscptr == NULL)
|
||||
return 1;
|
||||
|
@ -440,7 +440,7 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
|||
break;
|
||||
case '1':
|
||||
code_401_is_failure = 1;
|
||||
char *tmp = strchr(miscptr, ':');
|
||||
*tmp = strchr(miscptr, ':');
|
||||
if (tmp)
|
||||
miscptr = tmp + 1;
|
||||
else
|
||||
|
@ -448,7 +448,7 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
|||
break;
|
||||
case '2':
|
||||
code_302_is_success = 1;
|
||||
char *tmp = strchr(miscptr, ':');
|
||||
*tmp = strchr(miscptr, ':');
|
||||
if (tmp)
|
||||
miscptr = tmp + 1;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue