]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
This part was not correctly patched for AST-2008-010.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Jul 2008 03:46:01 +0000 (03:46 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Jul 2008 03:46:01 +0000 (03:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@133360 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index eb902147f4a0c34d18bee1679232f9fa388810a4..71f06e57c3a6f29180624c099cc27fc683b11016 100644 (file)
@@ -1318,10 +1318,10 @@ static int find_callno(unsigned short callno, unsigned short dcallno, struct soc
 
                gettimeofday(&now, NULL);
 
-               start = 1 + (rand() % (TRUNK_CALL_START - 1));
+               start = 2 + (rand() % (TRUNK_CALL_START - 1));
                for (x = start; 1; x++) {
                        if (x == TRUNK_CALL_START) {
-                               x = 0;
+                               x = 1;
                                continue;
                        }