summaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-12-07 13:38:10 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-12-07 13:38:10 -0600
commit738203f6e6b7c9f13b3b0da0e1b36e90165ce863 (patch)
treea7e77cd155d0dd5cdf0e04cfa2c52127702f7904 /third-party
parent4b233675d86fef64e6ccce82a0f7b038d3c7e032 (diff)
parentd506874477d2b2d64f50fa5d2fa77565934656d6 (diff)
Merge "Bundled pjproject: Fix finding SIP transactions." into 13
Diffstat (limited to 'third-party')
-rw-r--r--third-party/pjproject/patches/config_site.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/third-party/pjproject/patches/config_site.h b/third-party/pjproject/patches/config_site.h
index 66e8e84d3..f84adeb35 100644
--- a/third-party/pjproject/patches/config_site.h
+++ b/third-party/pjproject/patches/config_site.h
@@ -43,7 +43,16 @@
#define PJ_DEBUG 0
#define PJSIP_SAFE_MODULE 0
#define PJ_HAS_STRICMP_ALNUM 0
-#define PJ_HASH_USE_OWN_TOLOWER 1
+
+/*
+ * Do not ever enable PJ_HASH_USE_OWN_TOLOWER because the algorithm is
+ * inconsistently used when calculating the hash value and doesn't
+ * convert the same characters as pj_tolower()/tolower(). Thus you
+ * can get different hash values if the string hashed has certain
+ * characters in it. (ASCII '@', '[', '\\', ']', '^', and '_')
+ */
+#undef PJ_HASH_USE_OWN_TOLOWER
+
/*
It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.
Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.