[asterisk-commits] file: branch 1.4 r68157 -
/branches/1.4/main/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jun 7 11:39:52 MST 2007
Author: file
Date: Thu Jun 7 13:39:52 2007
New Revision: 68157
URL: http://svn.digium.com/view/asterisk?view=rev&rev=68157
Log:
Fix logic when doing a name based channel search for a structure when you want to start from a specific point in the channel list. (issue #9324 reported by slavon)
Modified:
branches/1.4/main/channel.c
Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=68157&r1=68156&r2=68157
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Thu Jun 7 13:39:52 2007
@@ -1045,6 +1045,11 @@
/* If prev was the last item on the channel list, then we just
* want to return NULL, instead of trying to deref NULL in the
* next section.
+ */
+ prev = NULL;
+ /* We want prev to be NULL in case we end up doing more searching through
+ * the channel list to find the channel (ie: name searching). If we didn't
+ * set this to NULL the logic would just blow up
*/
}
if (name) { /* want match by name */
More information about the asterisk-commits
mailing list