[OpenSIPS-Devel] [OpenSIPS/opensips] f3a3a2: tls_wolfssl: properly fix crash when clearing the ...

Vlad Pătrașcu noreply at github.com
Tue Jan 18 19:41:26 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f3a3a26402e717b29ed96f784d664e34b9d3736c
      https://github.com/OpenSIPS/opensips/commit/f3a3a26402e717b29ed96f784d664e34b9d3736c
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M modules/tls_wolfssl/Makefile
    M modules/tls_wolfssl/wolfssl.c
    M modules/tls_wolfssl/wolfssl_config.c

  Log Message:
  -----------
  tls_wolfssl: properly fix crash when clearing the error queue

Make sure the wolfssl error queue is empty after module init so that
multiple processes would not try to free the same elements. Drop the
custom locking callbacks mechanism introduced in commit 0b75867, as each
process allocates it's own queue elements even though shm is used.

Fixes #2667

(cherry picked from commit 91abb6c4fd3851da57c751ac8c97d0757d4b09dc)





More information about the Devel mailing list