]> git.ipfire.org Git - thirdparty/asterisk.git/commit
endpoints: Keep a reference to channel ids when creating snapshot.
authorJoshua Colp <jcolp@digium.com>
Mon, 9 Dec 2013 18:32:02 +0000 (18:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 9 Dec 2013 18:32:02 +0000 (18:32 +0000)
commitdcb642e2da10f2393900ff530c4369f79173193d
treede6056ce0de803e0ccc6cad0cedb1d2d1f78afa6
parentcf5e00138d0c6252fbdea72cd3ffd160ceee6358
endpoints: Keep a reference to channel ids when creating snapshot.

The snapshot process for endpoints uses the channel ids present
on the endpoint itself. Without keeping a reference it was possible
for the strings to be freed underneath any consumer of an endpoint
snapshot.

A reference is now held by the snapshot to the channel ids and
released when the snapshot is destroyed.

(issue ASTERISK-22801)
Reported by: Matt Jordan
........

Merged revisions 403542 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/endpoints.c