summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/hash.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-22 12:48:30 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-22 12:48:30 +0000
commit560d8dba3b98b2a5ae65da01b5021757eb366888 (patch)
tree2b947a42f03be862b6fa1a45ce1e95723cee0ac1 /pjlib/src/pj/hash.c
parent44d9c946fc77600985b869552887497c2a539d5c (diff)
Merged changes from the trunk
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1210 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/hash.c')
-rw-r--r--pjlib/src/pj/hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pjlib/src/pj/hash.c b/pjlib/src/pj/hash.c
index dc7da673..5a97e5f1 100644
--- a/pjlib/src/pj/hash.c
+++ b/pjlib/src/pj/hash.c
@@ -133,6 +133,9 @@ static pj_hash_entry **find_entry( pj_pool_t *pool, pj_hash_table_t *ht,
if (hval && *hval != 0) {
hash = *hval;
+ if (keylen==PJ_HASH_KEY_STRING) {
+ keylen = pj_ansi_strlen((const char*)key);
+ }
} else {
/* This slightly differs with pj_hash_calc() because we need
* to get the keylen when keylen is PJ_HASH_KEY_STRING.