diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 5b755ea073..e8d9fb2aa1 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7706,7 +7706,10 @@ static struct zt_pvt *chandup(struct zt_pvt *src) } p->destroy = 1; p->next = iflist; + p->prev = NULL; iflist = p; + if (iflist->next) + iflist->next->prev = p; return p; }