[sr-dev] git:master:c178f442: tls: updated to use shm_available_safe()

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 15 11:25:45 CEST 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-15T11:25:18+02:00

tls: updated to use shm_available_safe()

---

Modified: modules/tls/tls_server.c

---

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

---

diff --git a/modules/tls/tls_server.c b/modules/tls/tls_server.c
index be020ec..3f87fc8 100644
--- a/modules/tls/tls_server.c
+++ b/modules/tls/tls_server.c
@@ -59,10 +59,10 @@ int tls_run_event_routes(struct tcp_connection *c);
 /* low memory treshold for openssl bug #1491 workaround */
 #define LOW_MEM_NEW_CONNECTION_TEST() \
 	(cfg_get(tls, tls_cfg, low_mem_threshold1) && \
-	  (safe_shm_available() < cfg_get(tls, tls_cfg, low_mem_threshold1)))
+	  (shm_available_safe() < cfg_get(tls, tls_cfg, low_mem_threshold1)))
 #define LOW_MEM_CONNECTED_TEST() \
 	(cfg_get(tls, tls_cfg, low_mem_threshold2) && \
-	  (safe_shm_available() <  cfg_get(tls, tls_cfg, low_mem_threshold2)))
+	  (shm_available_safe() <  cfg_get(tls, tls_cfg, low_mem_threshold2)))
 
 #define TLS_RD_MBUF_SZ	65536
 #define TLS_WR_MBUF_SZ	65536




More information about the sr-dev mailing list