Module: kamailio Branch: master Commit: 2a3ca5942291d29de05b14338a36cecbec11f129 URL: https://github.com/kamailio/kamailio/commit/2a3ca5942291d29de05b14338a36cecbec11f129
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@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/2a3ca5942291d29de05b14338a36cecbec11f129.diff Patch: https://github.com/kamailio/kamailio/commit/2a3ca5942291d29de05b14338a36cecbec11f129.patch --- 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; _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev