diff options
author | erdgeist <> | 2009-11-16 18:58:34 +0000 |
---|---|---|
committer | erdgeist <> | 2009-11-16 18:58:34 +0000 |
commit | 1665c54179873fe0c0939225882b1df7df7588d7 (patch) | |
tree | b0cdcdc75428f2907e3ffbe3e506cf799b8df4d3 | |
parent | f4409df68abe9a27686a157ffa8da33603fc91ad (diff) |
prevent infinite loop when looking for X-Forwarded-For: Headers
-rw-r--r-- | ot_http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -381,6 +381,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, | |||
381 | /* Find last occurence of the forwarded header */ | 381 | /* Find last occurence of the forwarded header */ |
382 | do { | 382 | do { |
383 | fwd = fwd_new; | 383 | fwd = fwd_new; |
384 | fwd_new += 16; | ||
384 | fwd_new = strcasestr( fwd_new, "\nX-Forwarded-For:" ); | 385 | fwd_new = strcasestr( fwd_new, "\nX-Forwarded-For:" ); |
385 | } while( fwd_new ); | 386 | } while( fwd_new ); |
386 | 387 | ||