mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
* Fix unlocked accesses to feature_list. The feature_list is now also
protected by the features_lock. * Made all calls to ast_find_call_feature() have the features_lock held. * Fixed set_config_flags() to actually use find_group() to look for feature groups in DYNAMIC_FEATURES. The code originally assumed all feature groups were listed in DYNAMIC_FEATURES. * Make everyone use ast_rdlock_call_features(), ast_unlock_call_features(), and new ast_wrlock_call_features() instead of directly calling the rwlock API on features_lock. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3902,7 +3902,10 @@ static int action_atxfer(struct mansession *s, const struct message *m)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(atxfer_feature = ast_find_call_feature("atxfer"))) {
|
||||
ast_rdlock_call_features();
|
||||
atxfer_feature = ast_find_call_feature("atxfer");
|
||||
ast_unlock_call_features();
|
||||
if (!atxfer_feature) {
|
||||
astman_send_error(s, m, "No attended transfer feature found");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user