From: Jonathan Rose Date: Mon, 16 Dec 2013 18:31:12 +0000 (+0000) Subject: transfers: Fix bug setting both BLINDTRANSFER and ATTENDEDTRANSFER X-Git-Tag: 13.0.0-beta1~748 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00dcee2a640394ac0aae294396d96985c6c1aba1;p=thirdparty%2Fasterisk.git transfers: Fix bug setting both BLINDTRANSFER and ATTENDEDTRANSFER The ast_bridge_set_transfer_variables function is supposed to wipe whichever variable isn't being set. Instead it was setting both to the new value. Oops. (issue AFS-24) ........ Merged revisions 403957 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403958 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/bridge.c b/main/bridge.c index c64a879de8..e2c46ac749 100644 --- a/main/bridge.c +++ b/main/bridge.c @@ -3969,7 +3969,7 @@ void ast_bridge_set_transfer_variables(struct ast_channel *chan, const char *val } pbx_builtin_setvar_helper(chan, writevar, value); - pbx_builtin_setvar_helper(chan, erasevar, value); + pbx_builtin_setvar_helper(chan, erasevar, NULL); } /*!