diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-09-13 22:48:37 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-09-13 22:48:37 +0000 |
commit | a0fe9be8add2f491e7c41fbbbee565921a02acc1 (patch) | |
tree | 2edce42628732598162e316679f89ca7b60c8ebb /pjsip | |
parent | b6b6ff95f348d4812f1b274141eb290cb849980e (diff) |
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.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@713 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsip/sip_msg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pjsip/src/pjsip/sip_msg.c b/pjsip/src/pjsip/sip_msg.c index 72808a5c..d5eb1009 100644 --- a/pjsip/src/pjsip/sip_msg.c +++ b/pjsip/src/pjsip/sip_msg.c @@ -226,7 +226,8 @@ PJ_DEF(int) pjsip_method_cmp( const pjsip_method *m1, const pjsip_method *m2) if (m1->id == m2->id) { if (m1->id != PJSIP_OTHER_METHOD) return 0; - return pj_stricmp(&m1->name, &m2->name); + /* Method comparison is case sensitive! */ + return pj_strcmp(&m1->name, &m2->name); } return ( m1->id < m2->id ) ? -1 : 1; |