diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-10-31 15:34:11 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-10-31 15:34:11 +0000 |
commit | 8fb55e2478aa153f0ce960b445352998125146f4 (patch) | |
tree | e17cabde9991f5c9bc212138afd5b7b1206e8c03 /pbx/pbx_dundi.c | |
parent | 7ef0527a7d85cc146e3200d08311b1a1af67b951 (diff) |
fix various bugs related to list handling of channel variables (issue #5548)
use nolock lists for channel variables, since no locks are needed (these lists are either temporary or protected by the channel's own lock)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_dundi.c')
-rwxr-xr-x | pbx/pbx_dundi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 0dce9670f..c0165d962 100755 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -559,7 +559,7 @@ static int dundi_lookup_local(struct dundi_result *dr, struct dundi_mapping *map dr[anscnt].eid = *us_eid; dundi_eid_to_str(dr[anscnt].eid_str, sizeof(dr[anscnt].eid_str), &dr[anscnt].eid); if (ast_test_flag(&flags, DUNDI_FLAG_EXISTS)) { - AST_LIST_HEAD_INIT(&headp); + AST_LIST_HEAD_INIT_NOLOCK(&headp); newvariable = ast_var_assign("NUMBER", called_number); AST_LIST_INSERT_HEAD(&headp, newvariable, entries); newvariable = ast_var_assign("EID", dr[anscnt].eid_str); |