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
1 changed files with 3 additions and 1 deletions

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;
}