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
  • Loading branch information
bogdan-iancu committed Dec 17, 2024
1 parent 7d31fef commit f1e3750
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 @@ -1426,7 +1426,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 f1e3750

Please sign in to comment.