Mercurial > gftp.yaz
diff lib/ftps.c @ 449:3fc895f61665
2004-3-21 Brian Masney <masneyb@gftp.org>
* lib/ftps.c (ftps_auth_tls_start) - if the server rejects the
PROT C command, disconnect from the server
author | masneyb |
---|---|
date | Mon, 22 Mar 2004 00:04:56 +0000 |
parents | d7ff8d2d43aa |
children | 83cfffb2878a |
line wrap: on
line diff
--- a/lib/ftps.c Sun Mar 21 23:58:39 2004 +0000 +++ b/lib/ftps.c Mon Mar 22 00:04:56 2004 +0000 @@ -89,6 +89,11 @@ ret = rfc959_send_command (request, "PROT C\r\n", 1); if (ret < 0) return (ret); + else if (ret != '2') + { + gftp_disconnect (request); + return (GFTP_ERETRYABLE); + } params->data_conn_read = gftp_fd_read; params->data_conn_write = gftp_fd_write;