[asterisk-commits] file: branch 11 r404136 - in /branches/11: ./ res/res_calendar.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 18 05:59:54 CST 2013
Author: file
Date: Wed Dec 18 05:59:49 2013
New Revision: 404136
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404136
Log:
res_calendar: Protect channel when adding.
This change adds a missing channel lock when adding a datastore
to a channel.
........
Merged revisions 404135 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/res/res_calendar.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/res/res_calendar.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/res/res_calendar.c?view=diff&rev=404136&r1=404135&r2=404136
==============================================================================
--- branches/11/res/res_calendar.c (original)
+++ branches/11/res/res_calendar.c Wed Dec 18 05:59:49 2013
@@ -766,7 +766,10 @@
datastore->inheritance = DATASTORE_INHERIT_FOREVER;
ao2_ref(event, +1);
+
+ ast_channel_lock(chan);
res = ast_channel_datastore_add(chan, datastore);
+ ast_channel_unlock(chan);
if (!(tmpstr = ast_str_create(32))) {
goto notify_cleanup;
More information about the asterisk-commits
mailing list