[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    [sr-dev] git:master:a78adb53: core: init pv buffers earlier to be avaialble for cli params
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2022-06-28 16:44:08
Message-ID: E1o6EJs-0007U9-2N () www ! kamailio ! org
[Download RAW message or body]

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

Author: Daniel-Constantin Mierla <miconda@gmail.com>
Committer: Daniel-Constantin Mierla <miconda@gmail.com>
Date: 2022-06-28T18:43:53+02:00

core: init pv buffers earlier to be avaialble for cli params

- GH #3152

---

Modified: src/main.c

---

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

---

diff --git a/src/main.c b/src/main.c
index e919a23274..c6855e2033 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2178,6 +2178,10 @@ int main(int argc, char** argv)
 	init_tcp_options(); /* set the defaults before the config */
 #endif
 
+	if (pv_init_buffer()<0) {
+		goto error;
+	}
+
 	pp_define_core();
 
 	/* process command line (cfg. file path etc) */


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic