(trunk libT) fix potential NULL pointer dereference in libtransmission
This commit is contained in:
parent
fe54fded77
commit
22320d2356
|
@ -948,6 +948,8 @@ 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 ) );
|
||||
|
||||
if( io->gotError != NULL )
|
||||
io->gotError( io, what, io->userData );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue