mirror of
https://github.com/transmission/transmission
synced 2025-03-12 15:14:12 +00:00
fix a couple of encryption bugs.
This commit is contained in:
parent
ee634ce23d
commit
d8d46517b9
2 changed files with 3 additions and 1 deletions
|
@ -454,7 +454,7 @@ tr_peerIoWriteBytes( tr_peerIo * io,
|
|||
/*fprintf( stderr, "encrypting and writing %d bytes to outbuf...\n", byteCount );*/
|
||||
tmp = tr_new( uint8_t, byteCount );
|
||||
tr_cryptoEncrypt( io->crypto, byteCount, bytes, tmp );
|
||||
tr_bufferevent_write( io->handle, io->bufev, tmp, byteCount );
|
||||
evbuffer_add( outbuf, tmp, byteCount );
|
||||
tr_free( tmp );
|
||||
break;
|
||||
|
||||
|
|
|
@ -1261,6 +1261,8 @@ reconnectPulse( void * vt UNUSED )
|
|||
initiateHandshake( manager, io );
|
||||
--left;
|
||||
}
|
||||
|
||||
tr_free( pool );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Reference in a new issue