]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channels/chan_mgcp: Fix regression which causes gateways to be skipped
authorMatthew Jordan <mjordan@digium.com>
Sun, 9 Nov 2014 00:36:31 +0000 (00:36 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 9 Nov 2014 00:36:31 +0000 (00:36 +0000)
commit938f6d3bc02d888a1640e6833d06cfea429a4591
tree7e9072f4fcb4d6b5badaaf1f8aed9c877a35647e
parent80439dac049287be9aa671d39eca17aa495a5e9b
channels/chan_mgcp: Fix regression which causes gateways to be skipped

In r227276, a while loop was turned into a for loop. Unfortunately, a portion
of the while loop was left in the code such that, when a static gateway is
encountered in the list of MGCP gateways, the next gateway would be skipped.
At best, we would simply flip past a gateway; at worst, this could lead to a
crash.

ASTERISK-24500 #close
Reported by: Xavier Hienne
patches:
  chan_mgcp.patch uploaded by Xavier Hienne (License 6657)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@427613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_mgcp.c