summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2009-11-16 18:58:34 +0000
committererdgeist <>2009-11-16 18:58:34 +0000
commit1665c54179873fe0c0939225882b1df7df7588d7 (patch)
treeb0cdcdc75428f2907e3ffbe3e506cf799b8df4d3
parentf4409df68abe9a27686a157ffa8da33603fc91ad (diff)
prevent infinite loop when looking for X-Forwarded-For: Headers
-rw-r--r--ot_http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ot_http.c b/ot_http.c
index 5c0a260..72e8c57 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -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