From 0e8110fa2c6292e5fde30b341401df493e613391 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 15 Jan 2014 11:15:27 +0100 Subject: [PATCH] fix 3 way equality operation --- tester/call_tester.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tester/call_tester.c b/tester/call_tester.c index 347259bf4..d8e94b5f3 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -928,7 +928,8 @@ static void encrypted_call(LinphoneMediaEncryption mode) { CU_ASSERT_EQUAL(linphone_core_get_media_encryption(marie->lc),mode); CU_ASSERT_EQUAL(linphone_core_get_media_encryption(pauline->lc),mode); - if (linphone_core_get_media_encryption(pauline->lc) == linphone_core_get_media_encryption(pauline->lc) == LinphoneMediaEncryptionZRTP) { + if (linphone_core_get_media_encryption(pauline->lc) == LinphoneMediaEncryptionZRTP + && linphone_core_get_media_encryption(pauline->lc) == LinphoneMediaEncryptionZRTP) { /*check SAS*/ CU_ASSERT_STRING_EQUAL(linphone_call_get_authentication_token(linphone_core_get_current_call(pauline->lc)) ,linphone_call_get_authentication_token(linphone_core_get_current_call(marie->lc)));