(cherry picked from commit 27c383c9224055e3d1b01238ff47785449e4057c) (cherry picked from commit 75c75a5d2d4046276883c2677df1ef3cf0e29fb8)
@@ -384,7 +384,8 @@ int pv_get_tm_branch_idx(struct sip_msg *msg, pv_param_t *param,
idx = tcx->branch_index;
} else switch(route_type) {
case BRANCH_ROUTE:
- /* branches have their index set */
+ case BRANCH_FAILURE_ROUTE:
+ /* branch and branch_failure routes have their index set */
tcx = _tmx_tmb.tm_ctx_get();
if(tcx != NULL)