1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(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

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 );
}
}