]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix a possible infinite loop in SDP parsing during glare situation.
authorMark Michelson <mmichelson@digium.com>
Mon, 22 Jun 2009 14:34:05 +0000 (14:34 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 22 Jun 2009 14:34:05 +0000 (14:34 +0000)
commit1f7d3e9a0103341cce2642e338912155b293c267
treef3b077084b278d24fbb5649e597ed2df1647b627
parentf5432512601aa1091c82d52f53868018478dae61
Fix a possible infinite loop in SDP parsing during glare situation.

There was a while loop in get_ip_and_port_from_sdp which was controlled
by a call to get_sdp_iterate. The loop would exit either if what we were
searching for was found or if the return was NULL. The problem is that
get_sdp_iterate never returns NULL. This means that if what we were searching
for was not present, the loop would run infinitely. This modification of the
loop fixes the problem.

(closes issue #15213)
Reported by: schmidts

(closes issue #15349)
Reported by: samy

(closes issue #14464)
Reported by: pj

(closes issue #15345)
Reported by: aragon
Patches:
      sip_inf_loop.patch uploaded by mmichelson (license 60)
Tested by: aragon

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@202336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c