Changeset 5876


Ignore:
Timestamp:
Sep 4, 2018 2:25:34 AM (6 years ago)
Author:
ming
Message:

Re #2100: Fixed the incorrect string comparisons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r5875 r5876  
    280280        for (i = 0; i < src->crypto_count; i++) { 
    281281            if (!check_str || 
    282                 pj_stricmp(&dst->crypto[i].key, &src->crypto[i].key)) 
     282                pj_stricmp(&backup_dst.crypto[i].key, &src->crypto[i].key)) 
    283283            { 
    284284                pj_strdup(pool, &dst->crypto[i].key, &src->crypto[i].key); 
     
    290290            } 
    291291            if (!check_str || 
    292                 pj_stricmp(&dst->crypto[i].name, &src->crypto[i].name)) 
     292                pj_stricmp(&backup_dst.crypto[i].name, &src->crypto[i].name)) 
    293293            { 
    294294                pj_strdup(pool, &dst->crypto[i].name, &src->crypto[i].name); 
Note: See TracChangeset for help on using the changeset viewer.