aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-18 16:40:36 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-18 16:40:36 +0000
commit72bfa30a1088710c6374e359f6706e5e8dba8194 (patch)
treee4936670fb97ed218b1738293b0511a80c9b3070
parent88ba0e00d1a2db1d076944b879800e362bb8e9e6 (diff)
Merged revisions 103770 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103770 | mmichelson | 2008-02-18 10:37:31 -0600 (Mon, 18 Feb 2008) | 10 lines Fix a linked list corruption that under the right circumstances could lead to a looped list, meaning it will traverse forever. (closes issue #11818) Reported by: michael-fig Patches: 11818.patch uploaded by putnopvut (license 60) Tested by: michael-fig ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103771 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_zap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index d7676b359..f5ea1ff34 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -8678,7 +8678,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;
}