[asterisk-commits] simon.perreault: branch group/v6-new r273181 - /team/group/v6-new/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 30 07:45:38 CDT 2010


Author: simon.perreault
Date: Wed Jun 30 07:45:34 2010
New Revision: 273181

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273181
Log:
- Removed redundant initializations.
- Converted new code automerged from trunk.

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=273181&r1=273180&r2=273181
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Wed Jun 30 07:45:34 2010
@@ -2138,9 +2138,6 @@
 
 /*! \brief The TCP server definition */
 static struct ast_tcptls_session_args sip_tcp_desc = {
-	.local_address = { { 0, } },
-	.remote_address = { { 0, } },
-	.old_address = { { 0, } },
 	.accept_fd = -1,
 	.master = AST_PTHREADT_NULL,
 	.tls_cfg = NULL,
@@ -2152,9 +2149,6 @@
 
 /*! \brief The TCP/TLS server definition */
 static struct ast_tcptls_session_args sip_tls_desc = {
-	.local_address = { { 0, } },
-	.remote_address = { { 0, } },
-	.old_address = { { 0, } },
 	.accept_fd = -1,
 	.master = AST_PTHREADT_NULL,
 	.tls_cfg = &sip_tls_cfg,
@@ -7009,7 +7003,8 @@
 
 		/* RFC 3261 section 24.4.1.   Send a 400 Bad Request if the request is malformed. */
 		if (intended_method != SIP_RESPONSE && intended_method != SIP_ACK) {
-			transmit_response_using_temp(callid, sin, 1, intended_method, req, "400 Bad Request");
+			transmit_response_using_temp(callid, addr, 1, intended_method,
+						     req, "400 Bad Request");
 		}
 		return NULL;	/* Invalid packet */
 	}




More information about the asterisk-commits mailing list