1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 23:23:54 +00:00

fix a couple of encryption bugs.

This commit is contained in:
Charles Kerr 2007-09-22 21:48:02 +00:00
parent ee634ce23d
commit d8d46517b9
2 changed files with 3 additions and 1 deletions

View file

@ -454,7 +454,7 @@ tr_peerIoWriteBytes( tr_peerIo * io,
/*fprintf( stderr, "encrypting and writing %d bytes to outbuf...\n", byteCount );*/ /*fprintf( stderr, "encrypting and writing %d bytes to outbuf...\n", byteCount );*/
tmp = tr_new( uint8_t, byteCount ); tmp = tr_new( uint8_t, byteCount );
tr_cryptoEncrypt( io->crypto, byteCount, bytes, tmp ); tr_cryptoEncrypt( io->crypto, byteCount, bytes, tmp );
tr_bufferevent_write( io->handle, io->bufev, tmp, byteCount ); evbuffer_add( outbuf, tmp, byteCount );
tr_free( tmp ); tr_free( tmp );
break; break;

View file

@ -1261,6 +1261,8 @@ reconnectPulse( void * vt UNUSED )
initiateHandshake( manager, io ); initiateHandshake( manager, io );
--left; --left;
} }
tr_free( pool );
} }
return TRUE; return TRUE;