tcptls.c: Add missing cleanup on off nominal path.
authorRichard Mudgett <rmudgett@digium.com>
Sun, 26 Jan 2014 23:04:46 +0000 (23:04 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Sun, 26 Jan 2014 23:04:46 +0000 (23:04 +0000)
........

Merged revisions 406514 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 406515 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 406516 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406517 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/tcptls.c

index 76da512..bfa3559 100644 (file)
@@ -172,6 +172,8 @@ static void *handle_tcptls_connection(void *data)
         */
        if (ast_thread_inhibit_escalations()) {
                ast_log(LOG_ERROR, "Failed to inhibit privilege escalations; killing connection\n");
+               ast_tcptls_close_session_file(tcptls_session);
+               ao2_ref(tcptls_session, -1);
                return NULL;
        }