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

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


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e86525c2fda99110e0911dad66400d7fb1008b5e
      https://github.com/OpenSIPS/opensips/commit/e86525c2fda99110e0911dad66400d7fb1008b5e
  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: 4dfa0bab8c144005d616a7fb6223e6986238383f
      https://github.com/OpenSIPS/opensips/commit/4dfa0bab8c144005d616a7fb6223e6986238383f
  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/a61b0d62145f...4dfa0bab8c14



More information about the Devel mailing list