Module: kamailio
Branch: master
Commit: 7bb4b7dcc23c582ec666c71c9475e46e4ca12709
URL:
https://github.com/kamailio/kamailio/commit/7bb4b7dcc23c582ec666c71c9475e46…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-02T16:30:24+02:00
pipelimit: match algorithm name case insensitive
---
Modified: src/modules/pipelimit/pl_ht.h
---
Diff:
https://github.com/kamailio/kamailio/commit/7bb4b7dcc23c582ec666c71c9475e46…
Patch:
https://github.com/kamailio/kamailio/commit/7bb4b7dcc23c582ec666c71c9475e46…
---
diff --git a/src/modules/pipelimit/pl_ht.h b/src/modules/pipelimit/pl_ht.h
index cb5b9822f5..d2feaf40d5 100644
--- a/src/modules/pipelimit/pl_ht.h
+++ b/src/modules/pipelimit/pl_ht.h
@@ -112,11 +112,11 @@ static inline int str_i_cmp(const str * a, const str * b)
static inline int str_map_str(const str_map_t * map, const str * key, int * ret)
{
for (; map->str.s; map++)
- if (! str_cmp(&map->str, key)) {
+ if (! str_i_cmp(&map->str, key)) {
*ret = map->id;
return 0;
}
- LM_DBG("str_map_str() failed map=%p key=%.*s\n", map, key->len,
key->s);
+ LM_DBG("failed to match - map=%p key=%.*s\n", map, key->len, key->s);
return -1;
}
@@ -131,7 +131,7 @@ static inline int str_map_int(const str_map_t * map, int key, str *
ret)
*ret = map->str;
return 0;
}
- LM_DBG("str_map_str() failed map=%p key=%d\n", map, key);
+ LM_DBG("failed to match - failed map=%p key=%d\n", map, key);
return -1;
}
@@ -144,7 +144,7 @@ static inline int str_cpy(str * dest, str * src)
dest->len = src->len;
dest->s = shm_malloc(src->len);
if (! dest->s) {
- LM_ERR("oom: '%.*s'\n", src->len, src->s);
+ LM_ERR("out of shared memory: '%.*s'\n", src->len, src->s);
return -1;
}
memcpy(dest->s, src->s, src->len);