mirror of
git://erdgeist.org/opentracker
synced 2025-02-04 19:16:23 +00:00
prevent infinite loop when looking for X-Forwarded-For: Headers
This commit is contained in:
parent
f4409df68a
commit
1665c54179
@ -381,6 +381,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws,
|
|||||||
/* Find last occurence of the forwarded header */
|
/* Find last occurence of the forwarded header */
|
||||||
do {
|
do {
|
||||||
fwd = fwd_new;
|
fwd = fwd_new;
|
||||||
|
fwd_new += 16;
|
||||||
fwd_new = strcasestr( fwd_new, "\nX-Forwarded-For:" );
|
fwd_new = strcasestr( fwd_new, "\nX-Forwarded-For:" );
|
||||||
} while( fwd_new );
|
} while( fwd_new );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user