Module: kamailio
Branch: 5.8
Commit: 97706fa9cd28ff63256476fba4d7839da7daf60e
URL: 
https://github.com/kamailio/kamailio/commit/97706fa9cd28ff63256476fba4d7839da7daf60e

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-05T09:32:08+01:00

tm: rename parameter that hides a global

(cherry picked from commit bb604e272dd034abfc0fe8dcbdfc0102cbbc8a40)
(cherry picked from commit d5ceccd0e6d72001ba93071b0bdacf8f6b0736ed)

---

Modified: src/modules/tm/h_table.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/97706fa9cd28ff63256476fba4d7839da7daf60e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/97706fa9cd28ff63256476fba4d7839da7daf60e.patch

---

diff --git a/src/modules/tm/h_table.c b/src/modules/tm/h_table.c
index 7ee7c67470c..bef6f200d43 100644
--- a/src/modules/tm/h_table.c
+++ b/src/modules/tm/h_table.c
@@ -273,7 +273,7 @@ void free_cell_helper(
 }
 
 
-static inline void init_synonym_id(struct sip_msg *p_msg, char *hash)
+static inline void init_synonym_id(struct sip_msg *p_msg, char *hashval)
 {
        int size;
        char *c;
@@ -284,7 +284,7 @@ static inline void init_synonym_id(struct sip_msg *p_msg, 
char *hash)
                 * calculated out of header-fields forming
                 * transaction key
                */
-               char_msg_val(p_msg, hash);
+               char_msg_val(p_msg, hashval);
        } else {
                /* char value for a UAC transaction is created
                 * randomly -- UAC is an originating stateful element
@@ -293,7 +293,7 @@ static inline void init_synonym_id(struct sip_msg *p_msg, 
char *hash)
                */
                /* HACK : not long enough */
                myrand = kam_rand();
-               c = hash;
+               c = hashval;
                size = MD5_LEN;
                memset(c, '0', size);
                int2reverse_hex(&c, &size, myrand);

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to