diff options
author | erdgeist <> | 2013-08-04 10:05:35 +0000 |
---|---|---|
committer | erdgeist <> | 2013-08-04 10:05:35 +0000 |
commit | 954f5029dfa17734dc408336ef710c192268e8a4 (patch) | |
tree | 29c12778961042a437db4272f9d3f6b57e9ec130 /ot_http.c | |
parent | 4b6f7a7a5471882fb6b3aa7a323d6dc51eea16fb (diff) |
Fix immediate overwrite in the X-forwarded-for passing case. Thanks to Alexander Luetjen.
Diffstat (limited to 'ot_http.c')
-rw-r--r-- | ot_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -401,11 +401,11 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, | |||
401 | OT_SETIP( &ws->peer, cookie->ip ); | 401 | OT_SETIP( &ws->peer, cookie->ip ); |
402 | } else | 402 | } else |
403 | #endif | 403 | #endif |
404 | OT_SETIP( &ws->peer, cookie->ip ); | ||
404 | 405 | ||
405 | ws->peer_id = NULL; | 406 | ws->peer_id = NULL; |
406 | ws->hash = NULL; | 407 | ws->hash = NULL; |
407 | 408 | ||
408 | OT_SETIP( &ws->peer, cookie->ip ); | ||
409 | OT_SETPORT( &ws->peer, &port ); | 409 | OT_SETPORT( &ws->peer, &port ); |
410 | OT_PEERFLAG( &ws->peer ) = 0; | 410 | OT_PEERFLAG( &ws->peer ) = 0; |
411 | numwant = 50; | 411 | numwant = 50; |