[OpenSIPS-Devel] [OpenSIPS/opensips] 6d67b2: tls_mgm: fix a cleanup crash when failing to creat...

Vlad Pătrașcu noreply at github.com
Fri Jun 12 16:37:54 EST 2020


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6d67b28badb005390a705b4bea125ae2b0329779
      https://github.com/OpenSIPS/opensips/commit/6d67b28badb005390a705b4bea125ae2b0329779
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

  Changed paths:
    M modules/tls_mgm/tls_mgm.c

  Log Message:
  -----------
  tls_mgm: fix a cleanup crash when failing to create a SSL_CTX

(cherry picked from commit c6ac01258b61608b06ca400815e3b89302724107)


  Commit: 5fb90595995e09dfb41c5070785b6ce7b387f15c
      https://github.com/OpenSIPS/opensips/commit/5fb90595995e09dfb41c5070785b6ce7b387f15c
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

  Changed paths:
    M modules/cachedb_mongodb/Makefile
    M modules/cachedb_mongodb/cachedb_mongodb.c
    A modules/cachedb_mongodb/ssl_tweaks.c
    A ssl_init_tweaks.h

  Log Message:
  -----------
  cachedb_mongodb: fix crashes when loading module along with tls_mgm

Loading the cachedb_mongodb module causes the openssl library to be
initialized in the pre-daemon process, by the mongoc library's
constuctor, before tls_mgm gets the chance to do its own initialization
in the attendant process.
This commit overwrites the openssl functions used by the mongoc library
in order to actually skip the initialization and leave it to tls_mgm.

Related to #2091

(cherry picked from commit a3e87277f275d2b26a3f1472e78a07baea9de85c)


Compare: https://github.com/OpenSIPS/opensips/compare/073ff1c5eb4a...5fb90595995e



More information about the Devel mailing list