Module: kamailio
Branch: master
Commit: 2a3ca5942291d29de05b14338a36cecbec11f129
URL:
https://github.com/kamailio/kamailio/commit/2a3ca5942291d29de05b14338a36cec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-05-23T20:43:48+02:00
topos_redis: proper length value when comparing to insert INVITE branch
---
Modified: src/modules/topos_redis/topos_redis_storage.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2a3ca5942291d29de05b14338a36cec…
Patch:
https://github.com/kamailio/kamailio/commit/2a3ca5942291d29de05b14338a36cec…
---
diff --git a/src/modules/topos_redis/topos_redis_storage.c
b/src/modules/topos_redis/topos_redis_storage.c
index 50e33121ee..bc810e702b 100644
--- a/src/modules/topos_redis/topos_redis_storage.c
+++ b/src/modules/topos_redis/topos_redis_storage.c
@@ -1116,7 +1116,7 @@ int tps_redis_update_branch(sip_msg_t *msg, tps_data_t *md,
tps_data_t *sd,
return -1;
}
- if(md->s_method.len==6 && strncmp(md->s_method.s, "INVITE",
7)==0) {
+ if(md->s_method.len==6 && strncmp(md->s_method.s, "INVITE",
6)==0) {
if(tps_redis_insert_invite_branch(md)<0) {
LM_ERR("failed to insert INVITE extra branch data\n");
return -1;