[svn-commits] mmichelson: branch 1.4 r103770 - /branches/1.4/channels/chan_zap.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Feb 18 10:37:33 CST 2008


Author: mmichelson
Date: Mon Feb 18 10:37:31 2008
New Revision: 103770

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103770
Log:
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


Modified:
    branches/1.4/channels/chan_zap.c

Modified: branches/1.4/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_zap.c?view=diff&rev=103770&r1=103769&r2=103770
==============================================================================
--- branches/1.4/channels/chan_zap.c (original)
+++ branches/1.4/channels/chan_zap.c Mon Feb 18 10:37:31 2008
@@ -7706,7 +7706,10 @@
 	}
 	p->destroy = 1;
 	p->next = iflist;
+	p->prev = NULL;
 	iflist = p;
+	if (iflist->next)
+		iflist->next->prev = p;
 	return p;
 }
 	




More information about the svn-commits mailing list