Merged revisions 103770 via svnmerge from
[asterisk/asterisk.git] / channels / chan_zap.c
index d7676b3..f5ea1ff 100644 (file)
@@ -8678,7 +8678,10 @@ static struct zt_pvt *chandup(struct zt_pvt *src)
        }
        p->destroy = 1;
        p->next = iflist;
        }
        p->destroy = 1;
        p->next = iflist;
+       p->prev = NULL;
        iflist = p;
        iflist = p;
+       if (iflist->next)
+               iflist->next->prev = p;
        return p;
 }
        
        return p;
 }