]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 246546 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Fri, 12 Feb 2010 23:33:38 +0000 (23:33 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 12 Feb 2010 23:33:38 +0000 (23:33 +0000)
commit85614277f8eb3cf8af5d2982add0d595daf6392c
tree759e811e288ae92cf4960b1298daad1c55ef7dcc
parent94edab1f99419979300e73cd3053262b0d039372
Merged revisions 246546 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r246546 | dvossel | 2010-02-12 17:32:33 -0600 (Fri, 12 Feb 2010) | 21 lines

  Merged revisions 246545 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r246545 | dvossel | 2010-02-12 17:30:17 -0600 (Fri, 12 Feb 2010) | 16 lines

    lock channel during datastore removal

    On channel destruction the channel's datastores are removed and
    destroyed.  Since there are public API calls to find and remove
    datastores on a channel, a lock should be held whenever datastores are
    removed and destroyed.  This resolves a crash caused by a race
    condition in app_chanspy.c.

    (closes issue #16678)
    Reported by: tim_ringenbach
    Patches:
          datastore_destroy_race.diff uploaded by tim ringenbach (license 540)
    Tested by: dvossel
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@246547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c