Changeset 3827


Ignore:
Timestamp:
Nov 15, 2007, 2:34:51 PM (15 years ago)
Author:
charles
Message:

fix tracker redirect bug reported by sunny

Location:
branches/0.9x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/NEWS

    r3814 r3827  
    11NEWS file for Transmission <http://transmission.m0k.org/>
     2
     30.94 (2007/xx/yy)
     4- All Platforms:
     5   + Fix tracker redirect error (ticket #482)
    26
    370.93 (2007/11/12)
  • branches/0.9x/libtransmission/tracker.c

    r3581 r3827  
    429429    assert( t->addressIndex < t->addressCount );
    430430
    431     return &t->addresses[t->addressIndex];
     431    return t->redirect ? t->redirect
     432                       : t->addresses + t->addressIndex;
    432433}
    433434static int
     
    905906    } else {
    906907        struct evhttp_request * req;
    907         tr_free( t->lastRequest );
    908         t->lastRequest = tr_strdup( eventName );
     908        if( eventName != t->lastRequest ) {
     909            tr_free( t->lastRequest );
     910            t->lastRequest = tr_strdup( eventName );
     911        }
    909912        if( isStopping ) {
    910913            evhttp_connection_set_timeout( evcon, STOP_TIMEOUT_INTERVAL_SEC );
Note: See TracChangeset for help on using the changeset viewer.