mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
(trunk libT) fix potential NULL pointer dereference in libtransmission
This commit is contained in:
parent
fe54fded77
commit
22320d2356
1 changed files with 3 additions and 1 deletions
|
@ -948,6 +948,8 @@ tr_peerIoTryWrite( tr_peerIo * io, size_t howmuch )
|
||||||
{
|
{
|
||||||
const short what = EVBUFFER_WRITE | EVBUFFER_ERROR;
|
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 ) );
|
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 );
|
io->gotError( io, what, io->userData );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue