From ae38e5cf60269e27d266f0762de80595e9f39620 Mon Sep 17 00:00:00 2001 From: Bogdan-Andrei Iancu Date: Tue, 17 Dec 2024 13:13:59 +0200 Subject: [PATCH] [sipmsgops] Fix messing up the max-fwd parsed value upon msg validation For more details, see #3511 for the details. Alternativ fix/workaround to #3511 (cherry picked from commit f1e3750a83dc606f96100baaaccc555e6a923ca7) --- modules/sipmsgops/sipmsgops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/sipmsgops/sipmsgops.c b/modules/sipmsgops/sipmsgops.c index 9d5519ed767..2cc01c44a01 100644 --- a/modules/sipmsgops/sipmsgops.c +++ b/modules/sipmsgops/sipmsgops.c @@ -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: