Skip to content

Commit

Permalink
topos_redis: proper length value when comparing to insert INVITE branch
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a3ca59)
  • Loading branch information
miconda committed May 31, 2018
1 parent cc1ff15 commit 5fc19fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/topos_redis/topos_redis_storage.c
Expand Up @@ -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;
Expand Down

0 comments on commit 5fc19fd

Please sign in to comment.