[sr-dev] git:master:c9cd7b92: cfgutils: fix kemi wrappers for locking functions

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 28 10:37:34 CET 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-02-28T10:37:00+01:00

cfgutils: fix kemi wrappers for locking functions

- sip_msg_t* argument was missing, reported by GH #1459

---

Modified: src/modules/cfgutils/cfgutils.c

---

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

---

diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index 4a3e001e6e..eedef71691 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -735,17 +735,17 @@ static int cfg_lock_helper(str *lkey, int mode)
 	return 1;
 }
 
-static int cfg_lock(str *lkey)
+static int cfg_lock(sip_msg_t *msg, str *lkey)
 {
 	return cfg_lock_helper(lkey, 0);
 }
 
-static int cfg_unlock(str *lkey)
+static int cfg_unlock(sip_msg_t *msg, str *lkey)
 {
 	return cfg_lock_helper(lkey, 1);
 }
 
-static int cfg_trylock(str *lkey)
+static int cfg_trylock(sip_msg_t *msg, str *lkey)
 {
 	return cfg_lock_helper(lkey, 2);
 }




More information about the sr-dev mailing list