[svn-commits] jpdionne: branch group/v6-new r270529 - /team/group/v6-new/main/tcptls.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 15 12:19:21 CDT 2010


Author: jpdionne
Date: Tue Jun 15 12:19:18 2010
New Revision: 270529

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=270529
Log:
Create client socket with family of the remote address.

Modified:
    team/group/v6-new/main/tcptls.c

Modified: team/group/v6-new/main/tcptls.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/tcptls.c?view=diff&rev=270529&r1=270528&r2=270529
==============================================================================
--- team/group/v6-new/main/tcptls.c (original)
+++ team/group/v6-new/main/tcptls.c Tue Jun 15 12:19:18 2010
@@ -415,7 +415,7 @@
 	if (desc->accept_fd != -1)
 		close(desc->accept_fd);
 
-	desc->accept_fd = socket(ast_sockaddr_is_ipv6(&desc->local_address) ?
+	desc->accept_fd = socket(ast_sockaddr_is_ipv6(&desc->remote_address) ?
 				 AF_INET6 : AF_INET, SOCK_STREAM, IPPROTO_TCP);
 	if (desc->accept_fd < 0) {
 		ast_log(LOG_WARNING, "Unable to allocate socket for %s: %s\n",




More information about the svn-commits mailing list