You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2007/11/29 17:49:59 UTC

svn commit: r599514 - /httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c

Author: wrowe
Date: Thu Nov 29 08:49:59 2007
New Revision: 599514

URL: http://svn.apache.org/viewvc?rev=599514&view=rev
Log:
Fill in the sa.sin.sin_port (at the same offset as the sin6 port)
for our pasv listener.

Modified:
    httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c?rev=599514&r1=599513&r2=599514&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c Thu Nov 29 08:49:59 2007
@@ -1425,7 +1425,7 @@
     while (1)
     {
         /* Magic here when port == 0, accepts an ephemeral port assignment */
-        sa->port = port;
+        sa->port = sa->sa.sin.sin_port = port;
         rv = apr_socket_bind(s, sa);
         if (rv == APR_SUCCESS) {
             break;