From 1665c54179873fe0c0939225882b1df7df7588d7 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 16 Nov 2009 18:58:34 +0000 Subject: prevent infinite loop when looking for X-Forwarded-For: Headers --- ot_http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ot_http.c') 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, /* Find last occurence of the forwarded header */ do { fwd = fwd_new; + fwd_new += 16; fwd_new = strcasestr( fwd_new, "\nX-Forwarded-For:" ); } while( fwd_new ); -- cgit v1.2.3