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:
parent
99ea26c1c9
commit
42e70ad53e
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ void
|
||||||
tr_setEncryptionMode( tr_handle * handle, tr_encryption_mode mode )
|
tr_setEncryptionMode( tr_handle * handle, tr_encryption_mode mode )
|
||||||
{
|
{
|
||||||
assert( handle != NULL );
|
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;
|
handle->encryptionMode = mode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue