From: Kinsey Moore Date: Mon, 13 May 2013 18:09:21 +0000 (+0000) Subject: Close libsrtp properly X-Git-Tag: 11.5.0-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a0ce83380578acbe57df24d06b643cc355a5b5;p=thirdparty%2Fasterisk.git Close libsrtp properly Ensure that libsrtp is shutdown properly when res_srtp is unloaded. (closes issue ASTERISK-21719) Reported by: Corey Farrell Patches: res_srtp-library-shutdown.patch uploaded by Corey Farrell ........ Merged revisions 388529 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@388530 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_srtp.c b/res/res_srtp.c index 549a1eaeb9..dea222baea 100644 --- a/res/res_srtp.c +++ b/res/res_srtp.c @@ -546,6 +546,7 @@ static void res_srtp_shutdown(void) { srtp_install_event_handler(NULL); ast_rtp_engine_unregister_srtp(); + srtp_shutdown(); g_initialized = 0; }