From: Jonathan Rose Date: Mon, 16 Dec 2013 18:22:14 +0000 (+0000) Subject: transfers: Fix bug setting both BLINDTRANSFER and ATTENDEDTRANSFER X-Git-Tag: 12.0.0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3c7d088bc491318089a9994b9a2940e5b4aea1;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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@403957 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); } /*!