Ignore:
Timestamp:
Sep 13, 2006 10:48:37 PM (18 years ago)
Author:
bennylp
Message:

SIP methods are now compared case-sensitively (previously it was case-insensitive) because the standard says so. There's no ill effect of the old behavior, but it's still important that we do things according to what the standard says.

Also a little change in string implementation (use memcmp() instead of strncmp()), an increase the version number from 0.5.7.6 to 0.5.7.7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_msg.c

    r606 r713  
    227227        if (m1->id != PJSIP_OTHER_METHOD) 
    228228            return 0; 
    229         return pj_stricmp(&m1->name, &m2->name); 
     229        /* Method comparison is case sensitive! */ 
     230        return pj_strcmp(&m1->name, &m2->name); 
    230231    } 
    231232     
Note: See TracChangeset for help on using the changeset viewer.