mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 02:27:31 -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) {
|
int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
||||||
char *ptr, *ptr2;
|
char *ptr, *ptr2, *tmp;
|
||||||
|
|
||||||
if (miscptr == NULL)
|
if (miscptr == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -440,7 +440,7 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
||||||
break;
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
code_401_is_failure = 1;
|
code_401_is_failure = 1;
|
||||||
char *tmp = strchr(miscptr, ':');
|
*tmp = strchr(miscptr, ':');
|
||||||
if (tmp)
|
if (tmp)
|
||||||
miscptr = tmp + 1;
|
miscptr = tmp + 1;
|
||||||
else
|
else
|
||||||
|
@ -448,7 +448,7 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
||||||
break;
|
break;
|
||||||
case '2':
|
case '2':
|
||||||
code_302_is_success = 1;
|
code_302_is_success = 1;
|
||||||
char *tmp = strchr(miscptr, ':');
|
*tmp = strchr(miscptr, ':');
|
||||||
if (tmp)
|
if (tmp)
|
||||||
miscptr = tmp + 1;
|
miscptr = tmp + 1;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue