Module: kamailio
Branch: master
Commit: cb92b6a23d622b06bcb18195b5c0525fcd273e7a
URL: 
https://github.com/kamailio/kamailio/commit/cb92b6a23d622b06bcb18195b5c0525fcd273e7a

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-01-12T19:53:57+01:00

topos: prefix global variable

---

Modified: src/modules/topos/topos_mod.c

---

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

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index 7bcb2fea3c9..e37ca847beb 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -134,7 +134,7 @@ str _tps_xavu_field_contact_host = STR_NULL;
 str _tps_context_param = STR_NULL;
 str _tps_context_value = STR_NULL;
 
-sanity_api_t scb;
+static sanity_api_t _tps_scb;
 
 int tps_msg_received(sr_event_param_t *evp);
 int tps_msg_sent(sr_event_param_t *evp);
@@ -297,7 +297,7 @@ static int mod_init(void)
        }
 
        if(_tps_sanity_checks != 0) {
-               if(sanity_load_api(&scb) < 0) {
+               if(sanity_load_api(&_tps_scb) < 0) {
                        LM_ERR("cannot bind to sanity module\n");
                        goto error;
                }
@@ -539,7 +539,7 @@ int tps_msg_received(sr_event_param_t *evp)
 
        if(msg.first_line.type == SIP_REQUEST) {
                if(_tps_sanity_checks != 0) {
-                       if(scb.check_defaults(&msg) < 1) {
+                       if(_tps_scb.check_defaults(&msg) < 1) {
                                LM_ERR("sanity checks failed\n");
                                goto done;
                        }

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to