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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2018-11-08T08:24:59+01:00

cfgutils: error log message mentioning the param lock_set_size

---

Modified: src/modules/cfgutils/cfgutils.c

---

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

---

diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index 17cf6bfacc..e62012cd14 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -702,7 +702,8 @@ static int cfg_lock_helper(str *lkey, int mode)
        unsigned int pos;
 
        if(_cfg_lock_set==NULL) {
-               LM_ERR("lock set not initialized (attempt to do op: %d on: 
%.*s)\n",
+               LM_ERR("lock set not initialized (attempt to do op: %d on: 
%.*s) -"
+                               " see param lock_set_size\n",
                                mode, lkey->len, lkey->s);
                return -1;
        }
@@ -897,6 +898,7 @@ static void mod_destroy(void)
        {
                lock_set_destroy(_cfg_lock_set);
                lock_set_dealloc(_cfg_lock_set);
+               _cfg_lock_set = NULL;
        }
 }
 


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to