Module: kamailio
Branch: master
Commit: 03acf834a19689d6c3efcea93e48985d3e7ffc37
URL: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-16T09:44:54+01:00
core: parser - clang format parser_f.c
---
Modified: src/core/parser/parser_f.c
---
Diff: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
Patch: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
---
diff --git a/src/core/parser/parser_f.c b/src/core/parser/parser_f.c
index f1a532fd6f..c124f68cc5 100644
--- a/src/core/parser/parser_f.c
+++ b/src/core/parser/parser_f.c
@@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
@@ -28,22 +28,27 @@
*/
-#include "parser_f.h"
+#include "parser_f.h"
#include "../ut.h"
/** @brief returns pointer to next line or after the end of buffer */
-char* eat_line(char* buffer, unsigned int len)
+char *eat_line(char *buffer, unsigned int len)
{
- char* nl;
+ char *nl;
/* jku .. replace for search with a library function; not conforming
as I do not care about CR
*/
- nl=(char *)q_memchr( buffer, '\n', len );
- if ( nl ) {
- if ( nl + 1 < buffer+len) nl++;
- if (( nl+1<buffer+len) && * nl=='\r') nl++;
- } else nl=buffer+len;
+ nl = (char *)q_memchr(buffer, '\n', len);
+ if(nl) {
+ if(nl + 1 < buffer + len) {
+ nl++;
+ }
+ if((nl + 1 < buffer + len) && *nl == '\r') {
+ nl++;
+ }
+ } else {
+ nl = buffer + len;
+ }
return nl;
}
-
Module: kamailio
Branch: 5.5
Commit: 3cd4676ce5071f83fccc0e16946c9e0376b018f6
URL: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-12-16T09:32:07+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
Patch: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
---
diff --git a/src/modules/tls/README b/src/modules/tls/README
index 86dde8f336..2bba8c8115 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -238,6 +238,14 @@ Chapter 1. Admin Guide
module that uses libssl (OpenSSL library). A safe option is to have the
tls module loaded first (be in the first "loadmodule" in Kamailio.cfg).
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require Kamailio to be started with --atexit=no
+ command line parameters to avoid calling C atexit callbacks inside the
+ process ending during daemonize procedure as well as during shut down,
+ which can lead to crashes because it destroys and then accesses shared
+ memory. For example, such case has been reported for Ubuntu 20.04 or
+ RedHat 8.
+
2. Quick Start
The default kamailio.cfg file has basic tls support included, it has to
Module: kamailio
Branch: 5.5
Commit: e1fb93fa9e3b79f043fd6b7379a61340ba93e071
URL: https://github.com/kamailio/kamailio/commit/e1fb93fa9e3b79f043fd6b7379a6134…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-16T08:31:02+01:00
tls: docs - added note about --atexit=no cli param for newer libssl versions
(cherry picked from commit 8dc18cab5bc32c1d34a9113242d230b7458d4075)
---
Modified: src/modules/tls/doc/tls.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e1fb93fa9e3b79f043fd6b7379a6134…
Patch: https://github.com/kamailio/kamailio/commit/e1fb93fa9e3b79f043fd6b7379a6134…
---
diff --git a/src/modules/tls/doc/tls.xml b/src/modules/tls/doc/tls.xml
index b5ea415ae7..e356d5bff7 100644
--- a/src/modules/tls/doc/tls.xml
+++ b/src/modules/tls/doc/tls.xml
@@ -64,6 +64,15 @@
that uses libssl (OpenSSL library). A safe option is to have the tls module
loaded first (be in the first "loadmodule" in &kamailio;.cfg).
</para>
+ <para>
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require &kamailio; to be started with
+ <emphasis>--atexit=no</emphasis> command line parameters to avoid
+ calling C atexit callbacks inside the process ending during
+ daemonize procedure as well as during shut down, which can lead
+ to crashes because it destroys and then accesses shared memory. For
+ example, such case has been reported for Ubuntu 20.04 or RedHat 8.
+ </para>
</section>
<section id="tls.quick_start">
<title>Quick Start</title>