Module: kamailio
Branch: master
Commit: c9cd7b9212291e7d0846103cd2d4c8613dd667a1
URL:
https://github.com/kamailio/kamailio/commit/c9cd7b9212291e7d0846103cd2d4c86…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/c9cd7b9212291e7d0846103cd2d4c86…
Patch:
https://github.com/kamailio/kamailio/commit/c9cd7b9212291e7d0846103cd2d4c86…
---
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);
}