Changeset 3871


Ignore:
Timestamp:
Oct 28, 2011 4:20:48 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1405: Unable to reject unknown algorithm in authentication challenge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsip/sip_auth_client.c

    r3553 r3871  
    279279    /* Check algorithm is supported. We support MD5 and AKAv1-MD5. */ 
    280280    if (chal->algorithm.slen==0 || 
    281         (pj_stricmp(&chal->algorithm, &pjsip_MD5_STR) || 
    282          pj_stricmp(&chal->algorithm, &pjsip_AKAv1_MD5_STR))) 
     281        (pj_stricmp(&chal->algorithm, &pjsip_MD5_STR)==0 || 
     282         pj_stricmp(&chal->algorithm, &pjsip_AKAv1_MD5_STR)==0)) 
    283283    { 
    284284        ; 
Note: See TracChangeset for help on using the changeset viewer.