diff lib/ftps.c @ 546:5d13fa48c275

2004-9-6 Brian Masney <masneyb@gftp.org> * lib/protocols.c lib/sshv2.c lib/sslcommon.c - cleanups to the functions that write/read to/from the network. Retry the operation if EAGAIN is returned * lib/ftps.c - return an error if the SSL session cannot be setup properly
author masneyb
date Wed, 08 Sep 2004 00:18:10 +0000
parents fbb5a02beddb
children d553d14a2565
line wrap: on
line diff
--- a/lib/ftps.c	Tue Sep 07 23:30:40 2004 +0000
+++ b/lib/ftps.c	Wed Sep 08 00:18:10 2004 +0000
@@ -64,7 +64,7 @@
   if (ret < 0)
     return (ret);
   else if (ret != '2')
-    return (0);
+    return (GFTP_EFATAL);
 
   if ((ret = gftp_ssl_session_setup (request)) < 0)
     return (ret);