From: Russell Bryant Date: Wed, 18 Jul 2007 21:09:13 +0000 (+0000) Subject: When traversing the queue of frames for possible retransmission after X-Git-Tag: 1.2.26.1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b5a7a6f648d61ae68c3ffff111dae0f7b01037a;p=thirdparty%2Fasterisk.git When traversing the queue of frames for possible retransmission after receiving a VNAK, handle sequence number wraparound so that all frames that should be retransmitted actually do get retransmitted. (issue #10227, reported and patched by mihai) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75757 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index dacc20e17c..ad120dbdcf 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -6033,7 +6033,7 @@ static void vnak_retransmit(int callno, int last) while(f) { /* Send a copy immediately */ if ((f->callno == callno) && iaxs[f->callno] && - (f->oseqno >= last)) { + ((unsigned char ) (f->oseqno - last) < 128)) { send_packet(f); } f = f->next;