mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-08 05:51:12 -07:00
fix parsing of header value in http(s) modules
This commit is contained in:
parent
451e3d3edd
commit
f6723f61b1
1 changed files with 2 additions and 2 deletions
|
@ -416,7 +416,7 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
||||||
*(ptr - 1) = 0;
|
*(ptr - 1) = 0;
|
||||||
if (*ptr != 0) {
|
if (*ptr != 0) {
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
ptr += 2;
|
ptr += 1;
|
||||||
}
|
}
|
||||||
ptr2 = ptr;
|
ptr2 = ptr;
|
||||||
while (*ptr2 != 0 && (*ptr2 != ':' || *(ptr2 - 1) == '\\'))
|
while (*ptr2 != 0 && (*ptr2 != ':' || *(ptr2 - 1) == '\\'))
|
||||||
|
@ -447,7 +447,7 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
|
||||||
|
|
||||||
if (*ptr != 0) {
|
if (*ptr != 0) {
|
||||||
*ptr = 0;
|
*ptr = 0;
|
||||||
ptr += 2;
|
ptr += 1;
|
||||||
}
|
}
|
||||||
ptr2 = ptr;
|
ptr2 = ptr;
|
||||||
while (*ptr2 != 0 && (*ptr2 != ':' || *(ptr2 - 1) == '\\'))
|
while (*ptr2 != 0 && (*ptr2 != ':' || *(ptr2 - 1) == '\\'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue