Merged revisions 48363 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 9 Dec 2006 16:04:06 +0000 (16:04 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 9 Dec 2006 16:04:06 +0000 (16:04 +0000)
commit86ad1435c1a2e052f633b244b5e31df57b304ef5
treed830389ea687bf7ed0974de92dc1a7533baa975e
parent62c5be4fdab0050a5832c1483ef887bb592bfa75
Merged revisions 48363 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48363 | russell | 2006-12-09 10:59:42 -0500 (Sat, 09 Dec 2006) | 8 lines

Use locking when accessing the registrations list.  This list is not actually
used very often, so the likelihood of there being a problem is pretty small,
but still possible.  For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.

In passing, go ahead and convert this list to use the linked list macros.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c