]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add another sanity check to vnak_retransmit(). This check ensures that frames
authorRussell Bryant <russell@russellbryant.com>
Thu, 2 Aug 2007 16:56:04 +0000 (16:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 2 Aug 2007 16:56:04 +0000 (16:56 +0000)
that have already been marked for deletion don't get retransmitted.
(closes issue #10361, patch from mihai)

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

channels/chan_iax2.c

index 9ebfbc43ac7b53d17631fbc1644da8de93310cec..2dbc74f470303585be4e9dd08ab5dd792ee460a1 100644 (file)
@@ -5943,7 +5943,8 @@ static void vnak_retransmit(int callno, int last)
        AST_LIST_TRAVERSE(&iaxq.queue, f, list) {
                /* Send a copy immediately */
                if ((f->callno == callno) && iaxs[f->callno] &&
-                       ((unsigned char ) (f->oseqno - last) < 128)) {
+                       ((unsigned char ) (f->oseqno - last) < 128) &&
+                       (f->retries >= 0)) {
                        send_packet(f);
                }
        }