summaryrefslogtreecommitdiff
path: root/res/res_srtp.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2013-05-15 12:42:04 +0000
committerKinsey Moore <kmoore@digium.com>2013-05-15 12:42:04 +0000
commit1ead1853f22f5dfb6cb57a9b9eefb040a1d6030a (patch)
treead8ed6192368dfb889252a0053e7e0264637592e /res/res_srtp.c
parent9648e258c76a24c5a24e16c634fcda73829e5d30 (diff)
Use srtp_shutdown when available
This allows the SRTP library to be shut down properly when the functionality is offered by libsrtp. Review: https://reviewboard.asterisk.org/r/2538/ (closes issue ASTERISK-21719) ........ Merged revisions 388768 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 388769 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_srtp.c')
-rw-r--r--res/res_srtp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_srtp.c b/res/res_srtp.c
index 549a1eaeb..41241d0ed 100644
--- a/res/res_srtp.c
+++ b/res/res_srtp.c
@@ -546,6 +546,9 @@ static void res_srtp_shutdown(void)
{
srtp_install_event_handler(NULL);
ast_rtp_engine_unregister_srtp();
+#ifdef HAVE_SRTP_SHUTDOWN
+ srtp_shutdown();
+#endif
g_initialized = 0;
}