Summary: | ASTERISK-04958: [patch] ast_channel_inherit_variables copys variable list from parent to child in incorrect order | ||
Reporter: | Di-Shi Sun (homesick) | Labels: | |
Date Opened: | 2005-09-01 10:18:19 | Date Closed: | 2008-01-15 15:46:43.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) ast_channel_inherit_variables.patch | |
Description: | ast_channel_inherit_variables function in asterisk/channel.c copys variable list from parent to child in incorrect order. It reads variable list of parent from head to tail and inserts variable in the head of the variable list of child. For example, the variable linked list of parent is A->B->C, the function copys it to child, the variable linked list of child will be C->B->A. If some variables in the variable list have a same name but different values, it causes problems. ****** ADDITIONAL INFORMATION ****** Disclaimer signed by TransNexus, Inc. 1/27/05 | ||
Comments: | By: Kevin P. Fleming (kpfleming) 2005-09-01 17:50:00 Committed to CVS HEAD, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:46:43.000-0600 Repository: asterisk Revision: 6489 U trunk/channel.c ------------------------------------------------------------------------ r6489 | kpfleming | 2008-01-15 15:46:43 -0600 (Tue, 15 Jan 2008) | 2 lines don't reverse variable order during inheritance (issue ASTERISK-4958) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6489 |