Changeset 3458


Ignore:
Timestamp:
Oct 18, 2007, 7:33:29 PM (15 years ago)
Author:
charles
Message:

possibly fix r3457 crash reported by chrissturm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r3457 r3458  
    807807    if( 200<=responseCode && responseCode<=299 )
    808808    {
    809         dbgmsg( t, "request succeeded. reannouncing in %d seconds", t->announceIntervalSec );
    810 
     809        dbgmsg( t, "request succeeded. reannouncing in %d seconds",
     810                   t->announceIntervalSec );
    811811        t->manualAnnounceAllowedAt = time(NULL)
    812812                                   + t->announceMinIntervalSec;
     
    830830         * malformed syntax. The client SHOULD NOT repeat the
    831831         * request without modifications. */
    832         publishErrorMessage( t, req->response_code_line );
     832        if( req && req->response_code_line )
     833            publishErrorMessage( t, req->response_code_line );
    833834        t->manualAnnounceAllowedAt = ~(time_t)0;
    834835        t->reannounceTimer = NULL;
     
    842843         * incapable of performing the request.  So we pause a bit and
    843844         * try again. */
    844         publishWarning( t, req->response_code_line );
     845        if( req && req->response_code_line )
     846            publishWarning( t, req->response_code_line );
    845847        t->manualAnnounceAllowedAt = ~(time_t)0;
    846848        t->reannounceTimer = tr_timerNew( t->handle, onRetry, t, 15 * 1000 );
     
    851853
    852854        /* WTF did we get?? */
    853         publishErrorMessage( t, req->response_code_line );
     855        if( req && req->response_code_line )
     856            publishErrorMessage( t, req->response_code_line );
    854857        t->manualAnnounceAllowedAt = ~(time_t)0;
    855858        t->reannounceTimer = tr_timerNew( t->handle, onRetry, t, 120 * 1000 );
Note: See TracChangeset for help on using the changeset viewer.