From e095143a373cde3c2cc71c19eeba003e4b1e9582 Mon Sep 17 00:00:00 2001 From: file Date: Sat, 30 Dec 2006 03:40:42 +0000 Subject: Merged revisions 49063 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49063 | file | 2006-12-29 22:37:22 -0500 (Fri, 29 Dec 2006) | 2 lines Initialize the packet queue in load_module instead of just declaring the list with the default value. (issue #8695 reported by ssokol) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49064 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_iax2.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'channels/chan_iax2.c') diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index dda1e688c..5eb447e99 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -632,9 +632,7 @@ struct chan_iax2_pvt { static struct ast_iax2_queue { AST_LIST_HEAD(, iax_frame) queue; int count; -} iaxq = { - .queue = AST_LIST_HEAD_INIT_VALUE -}; +} iaxq; static AST_LIST_HEAD_STATIC(users, iax2_user); @@ -9986,6 +9984,8 @@ static int __unload_module(void) AST_LIST_TRAVERSE_SAFE_END AST_LIST_UNLOCK(&dynamic_list); + AST_LIST_HEAD_DESTROY(&iaxq.queue); + ast_netsock_release(netsock); for (x=0;x