mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +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,7 +948,9 @@ 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 ) );
|
||||||
io->gotError( io, what, io->userData );
|
|
||||||
|
if( io->gotError != NULL )
|
||||||
|
io->gotError( io, what, io->userData );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue