]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Oops
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 1 Jul 2008 19:05:28 +0000 (19:05 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 1 Jul 2008 19:05:28 +0000 (19:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@127069 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 34d45476fcb903ee9b8b616345100db3feeaf8ec..9f30359e2c78cf46880d7391e31183b417b64119 100644 (file)
@@ -1493,8 +1493,8 @@ static int make_trunk(unsigned short callno, int locked)
                         * \note We delete these before switching the slot, because if
                         * they fire in the meantime, they will generate a warning.
                         */
-                       AST_SCHED_DEL(sched, iaxs[x]->pingid);
-                       AST_SCHED_DEL(sched, iaxs[x]->lagid);
+                       AST_SCHED_DEL(sched, iaxs[callno]->pingid);
+                       AST_SCHED_DEL(sched, iaxs[callno]->lagid);
                        iaxs[x] = iaxs[callno];
                        iaxs[x]->callno = x;
                        iaxs[callno] = NULL;