summaryrefslogtreecommitdiff
path: root/res/res_pjsip_t38.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2015-01-28 17:37:55 +0000
committerMark Michelson <mmichelson@digium.com>2015-01-28 17:37:55 +0000
commit8c068fc096c7a7f2c80e30b6a89dc057902201e0 (patch)
treeeaf0c98ddfb1386f64589a5ee1717e522147bc27 /res/res_pjsip_t38.c
parent25a67d561c521d057312454965bbffe9074703cf (diff)
Fix file descriptor leak in RTP code.
SIP requests that offered codecs incompatible with configured values could result in the allocation of RTP and RTCP ports that would not get reclaimed later. ASTERISK-24666 #close Reported by Y Ateya Review: https://reviewboard.asterisk.org/r/4323 AST-2015-001 ........ Merged revisions 431300 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_t38.c')
-rw-r--r--res/res_pjsip_t38.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_pjsip_t38.c b/res/res_pjsip_t38.c
index 1dba15a12..d91d370d6 100644
--- a/res/res_pjsip_t38.c
+++ b/res/res_pjsip_t38.c
@@ -818,6 +818,7 @@ static void stream_destroy(struct ast_sip_session_media *session_media)
if (session_media->udptl) {
ast_udptl_destroy(session_media->udptl);
}
+ session_media->udptl = NULL;
}
/*! \brief SDP handler for 'image' media stream */