Changeset 2099 for pjproject


Ignore:
Timestamp:
Jul 4, 2008 4:25:19 PM (16 years ago)
Author:
bennylp
Message:

Fixed bug in SRTP regarding startup flags evaluation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r2064 r2099  
    420420    /* Get encryption and authentication method */ 
    421421    cr_tx_idx = au_tx_idx = get_crypto_idx(&tx->name); 
    422     if (tx->flags && PJMEDIA_SRTP_NO_ENCRYPTION) 
     422    if (tx->flags & PJMEDIA_SRTP_NO_ENCRYPTION) 
    423423        cr_tx_idx = 0; 
    424     if (tx->flags && PJMEDIA_SRTP_NO_AUTHENTICATION) 
     424    if (tx->flags & PJMEDIA_SRTP_NO_AUTHENTICATION) 
    425425        au_tx_idx = 0; 
    426426 
    427427    cr_rx_idx = au_rx_idx = get_crypto_idx(&rx->name); 
    428     if (rx->flags && PJMEDIA_SRTP_NO_ENCRYPTION) 
     428    if (rx->flags & PJMEDIA_SRTP_NO_ENCRYPTION) 
    429429        cr_rx_idx = 0; 
    430     if (rx->flags && PJMEDIA_SRTP_NO_AUTHENTICATION) 
     430    if (rx->flags & PJMEDIA_SRTP_NO_AUTHENTICATION) 
    431431        au_rx_idx = 0; 
    432432 
Note: See TracChangeset for help on using the changeset viewer.