diff lib/rfc959.c @ 432:d7ff8d2d43aa

2004-3-17 Brian Masney <masneyb@gftp.org> * lib/ftpcommon.h lib/ftps.c - removed encrypted_connection variable from the rfc959_parms structure * lib/rfc959.c (rfc959_copy_param_options) - fix for FTPS protocol so that the proper read/write function is setup whenever the request structure is copied
author masneyb
date Wed, 17 Mar 2004 18:40:41 +0000
parents c5d14dca70c3
children 9d03253b00d0
line wrap: on
line diff
--- a/lib/rfc959.c	Wed Mar 17 18:01:48 2004 +0000
+++ b/lib/rfc959.c	Wed Mar 17 18:40:41 2004 +0000
@@ -1713,7 +1713,15 @@
   dparms = dest_request->protocol_data;
   sparms = src_request->protocol_data;
 
+  dparms->data_connection = -1;
   dparms->is_ascii_transfer = sparms->is_ascii_transfer;
+  dparms->is_fxp_transfer = sparms->is_fxp_transfer;
+  dparms->auth_tls_start = sparms->auth_tls_start;
+  dparms->data_conn_read = sparms->data_conn_read;
+  dparms->data_conn_write = sparms->data_conn_write;
+
+  dest_request->read_function = src_request->read_function;
+  dest_request->write_function = src_request->write_function;
 }