1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-05 19:18:19 +00:00

fix John_Clay's assertion bugreport

This commit is contained in:
Charles Kerr 2007-11-09 01:25:34 +00:00
parent 99ea26c1c9
commit 42e70ad53e

View file

@ -90,7 +90,9 @@ void
tr_setEncryptionMode( tr_handle * handle, tr_encryption_mode mode )
{
assert( handle != NULL );
assert( mode==TR_ENCRYPTION_PREFERRED || mode==TR_ENCRYPTION_REQUIRED );
assert( mode==TR_ENCRYPTION_PREFERRED
|| mode==TR_ENCRYPTION_REQUIRED
|| mode==TR_PLAINTEXT_PREFERRED );
handle->encryptionMode = mode;
}