From: Mark Spencer Date: Wed, 6 Oct 2004 23:45:26 +0000 (+0000) Subject: Be sure prev struct is built properly (bug #2581) X-Git-Tag: 1.2.0-beta1~2076 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=209d413c6bfb5af91ca65e666f5ab52579251b84;p=thirdparty%2Fasterisk.git Be sure prev struct is built properly (bug #2581) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3926 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index f9000590b7..88ccaaf022 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -6556,6 +6556,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 */