[asterisk-commits] file: branch file/gulp_transfer r388301 - /team/file/gulp_transfer/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 10 09:14:58 CDT 2013


Author: file
Date: Fri May 10 09:14:56 2013
New Revision: 388301

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388301
Log:
Make sure the refer structures don't contain garbage.

Modified:
    team/file/gulp_transfer/res/res_sip_refer.c

Modified: team/file/gulp_transfer/res/res_sip_refer.c
URL: http://svnview.digium.com/svn/asterisk/team/file/gulp_transfer/res/res_sip_refer.c?view=diff&rev=388301&r1=388300&r2=388301
==============================================================================
--- team/file/gulp_transfer/res/res_sip_refer.c (original)
+++ team/file/gulp_transfer/res/res_sip_refer.c Fri May 10 09:14:56 2013
@@ -485,7 +485,7 @@
 		return 200;
 	} else {
 		const char *context = (session->channel ? pbx_builtin_getvar_helper(session->channel, "TRANSFER_CONTEXT") : "");
-		struct refer_blind refer;
+		struct refer_blind refer = { 0, };
 
 		if (ast_strlen_zero(context)) {
 			context = session->endpoint->context;
@@ -524,7 +524,7 @@
 {
 	const char *context = (session->channel ? pbx_builtin_getvar_helper(session->channel, "TRANSFER_CONTEXT") : "");
 	char exten[AST_MAX_EXTENSION];
-	struct refer_blind refer;
+	struct refer_blind refer = { 0, };
 
 	/* If no explicit transfer context has been provided use their configured context */
 	if (ast_strlen_zero(context)) {




More information about the asterisk-commits mailing list