diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-09 04:12:10 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-09 04:12:10 +0000 |
commit | e3ac6c26773034252df227fbb234d76928d0bb4c (patch) | |
tree | cd231548fe790d2d141af969a6810da3ec1e5ec1 /channels/chan_zap.c | |
parent | 22ade975888e11291a5efc4233e94c3cb56d5239 (diff) |
This bug existed in one extra place that is not also in 1.2 ... So, fix it!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39455 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 1c06a7ca1..f8a81e931 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6330,8 +6330,10 @@ static void *ss_thread(void *data) if (p->ringt < p->ringt_base/2) break; - ++receivedRingT; /* Increment the ringT counter so we can match it against - values in zapata.conf for distinctive ring */ + /* Increment the ringT counter so we can match it against + values in zapata.conf for distinctive ring */ + if (++receivedRingT == (sizeof(curRingData) / sizeof(curRingData[0]))) + break; } else if (i & ZT_IOMUX_READ) { res = read(p->subs[index].zfd, buf, sizeof(buf)); if (res < 0) { |