(trunk libT) fix potential NULL pointer dereference in libtransmission

This commit is contained in:
Charles Kerr 2010-03-02 04:51:40 +00:00
parent fe54fded77
commit 22320d2356
1 changed files with 3 additions and 1 deletions

View File

@ -948,7 +948,9 @@ tr_peerIoTryWrite( tr_peerIo * io, size_t howmuch )
{
const short what = EVBUFFER_WRITE | EVBUFFER_ERROR;
dbgmsg( io, "tr_peerIoTryWrite got an error. res is %d, what is %hd, errno is %d (%s)", n, what, e, strerror( e ) );
io->gotError( io, what, io->userData );
if( io->gotError != NULL )
io->gotError( io, what, io->userData );
}
}