mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user