diff --git a/channels/chan_zap.c b/channels/chan_zap.c index cbb93f1d66..c4085f9db8 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6535,6 +6535,7 @@ static struct zt_pvt *mkintf(int channel, int signalling, int radio, struct zt_p if (working->channel > tmp->channel) { tmp->next = *wlist; tmp->prev = NULL; + (*wlist)->prev = tmp; *wlist = tmp; } else { /* go through all the members and put the member in the right place */