Module: sip-router
Branch: andrei/tcp_tls_changes
Commit: 258cc031138b572aa90b4478baed4bb9708b0a37
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=258cc03…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu May 20 16:18:16 2010 +0200
tls: safer destroy_cfg
- tls_destroy_cfg() can now be called safely more then once.
---
modules/tls/tls_domain.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/tls/tls_domain.c b/modules/tls/tls_domain.c
index a106f4a..891a9c5 100644
--- a/modules/tls/tls_domain.c
+++ b/modules/tls/tls_domain.c
@@ -128,6 +128,7 @@ void tls_destroy_cfg(void)
if (tls_cfg_lock) {
lock_destroy(tls_cfg_lock);
lock_dealloc(tls_cfg_lock);
+ tls_cfg_lock = 0;
}
if (tls_cfg) {
@@ -138,6 +139,7 @@ void tls_destroy_cfg(void)
}
shm_free(tls_cfg);
+ tls_cfg = 0;
}
}