diff lib/rfc959.c @ 288:c8627e70adb5

2003-10-17 Brian Masney <masneyb@gftp.org> * lib/rfc959.c (rfc959_ipv[46]_data_connection_new) - when there is an error establishing a connection to the remote server, make sure that GFTP_ERETRYABLE is returned.
author masneyb
date Sat, 18 Oct 2003 14:42:17 +0000
parents de030cbd432c
children e5ce6f15290f
line wrap: on
line diff
--- a/lib/rfc959.c	Mon Oct 13 22:03:24 2003 +0000
+++ b/lib/rfc959.c	Sat Oct 18 14:42:17 2003 +0000
@@ -617,7 +617,7 @@
       if ((resp = rfc959_send_command (request, "PASV\r\n")) != '2')
 	{
           if (request->datafd < 0)
-            return (resp);
+            return (GFTP_ERETRYABLE);
 
           gftp_set_request_option (request, "passive_transfer", GINT_TO_POINTER(0));
 	  return (rfc959_ipv4_data_connection_new (request));
@@ -773,7 +773,7 @@
       if ((resp = rfc959_send_command (request, "EPSV\r\n")) != '2')
 	{
           if (request->datafd < 0)
-            return (resp);
+            return (GFTP_ERETRYABLE);
 
           gftp_set_request_option (request, "passive_transfer", 
                                    GINT_TO_POINTER(0));