summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-07-04 16:25:19 +0000
committerBenny Prijono <bennylp@teluu.com>2008-07-04 16:25:19 +0000
commit85b4ac3191289ba9cb230526789c418132023198 (patch)
tree785901ead06b2650509a7b20ac82514c09708b9c /pjmedia
parentf134d650d442e68e9fe0182842b59111cd2a65dd (diff)
Fixed bug in SRTP regarding startup flags evaluation
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2099 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia/transport_srtp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pjmedia/src/pjmedia/transport_srtp.c b/pjmedia/src/pjmedia/transport_srtp.c
index acb777f7..ab188172 100644
--- a/pjmedia/src/pjmedia/transport_srtp.c
+++ b/pjmedia/src/pjmedia/transport_srtp.c
@@ -419,15 +419,15 @@ PJ_DEF(pj_status_t) pjmedia_transport_srtp_start(
/* Get encryption and authentication method */
cr_tx_idx = au_tx_idx = get_crypto_idx(&tx->name);
- if (tx->flags && PJMEDIA_SRTP_NO_ENCRYPTION)
+ if (tx->flags & PJMEDIA_SRTP_NO_ENCRYPTION)
cr_tx_idx = 0;
- if (tx->flags && PJMEDIA_SRTP_NO_AUTHENTICATION)
+ if (tx->flags & PJMEDIA_SRTP_NO_AUTHENTICATION)
au_tx_idx = 0;
cr_rx_idx = au_rx_idx = get_crypto_idx(&rx->name);
- if (rx->flags && PJMEDIA_SRTP_NO_ENCRYPTION)
+ if (rx->flags & PJMEDIA_SRTP_NO_ENCRYPTION)
cr_rx_idx = 0;
- if (rx->flags && PJMEDIA_SRTP_NO_AUTHENTICATION)
+ if (rx->flags & PJMEDIA_SRTP_NO_AUTHENTICATION)
au_rx_idx = 0;
/* Check whether the crypto-suite requested is supported */