(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
This commit is contained in:
Assar Westerlund
1999-11-30 19:18:38 +00:00
parent 9038a64b31
commit 8dd25ed0b9

View File

@@ -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,