Skip to content

Commit

Permalink
[sipmsgops] Fix messing up the max-fwd parsed value upon msg validation
Browse files Browse the repository at this point in the history
For more details, see #3511 for the details.
Alternativ fix/workaround to #3511

(cherry picked from commit f1e3750)
  • Loading branch information
bogdan-iancu committed Dec 17, 2024
1 parent 40c2e94 commit ae38e5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/sipmsgops/sipmsgops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,9 @@ static int sip_validate_hdrs(struct sip_msg *msg)
hf->name.len, hf->name.s);
goto failed;
}
hf->parsed = (void*)(unsigned long)u_aux;
/* do not write back the value, let he MF module do its
* own magic on how to store the parsed value */
//hf->parsed = (void*)(unsigned long)u_aux;
break;

case HDR_SUPPORTED_T:
Expand Down

0 comments on commit ae38e5c

Please sign in to comment.