Changeset 10300


Ignore:
Timestamp:
Mar 2, 2010, 4:51:40 AM (12 years ago)
Author:
charles
Message:

(trunk libT) fix potential NULL pointer dereference in libtransmission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r10276 r10300  
    949949            const short what = EVBUFFER_WRITE | EVBUFFER_ERROR;
    950950            dbgmsg( io, "tr_peerIoTryWrite got an error. res is %d, what is %hd, errno is %d (%s)", n, what, e, strerror( e ) );
    951             io->gotError( io, what, io->userData );
     951
     952            if( io->gotError != NULL )
     953                io->gotError( io, what, io->userData );
    952954        }
    953955    }
Note: See TracChangeset for help on using the changeset viewer.