From 8dd25ed0b9730a7cbb647bacf8809d518927101d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 30 Nov 1999 19:18:38 +0000 Subject: [PATCH] (getdatasock): make sure to keep the port-number of the outgoing connections. It has to be `ftp-data' or some people might get upset. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7455 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 9289ff9c5..97eefba80 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -1172,7 +1172,7 @@ getdatasock(const char *mode) /* anchor socket to avoid multi-homing problems */ socket_set_address_and_port (data_source, socket_get_address (ctrl_addr), - 0); + socket_get_port (data_source)); for (tries = 1; ; tries++) { if (bind(s, data_source,