aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-01-08 11:24:11 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-01-08 11:24:11 +0000
commitd4651994110612c476a2b65dfa0f9b4f138fca68 (patch)
tree28a4ed8c9b06a200b670516c700c9a2baa3d2081 /lib/ftp.c
parent55123424c896feb6581b086f5cac87c1d6df562f (diff)
Correct error code for CCC/SSL shutdown failure
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 56b6cf229..4b6139edf 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2563,8 +2563,10 @@ static CURLcode ftp_statemach_act(struct connectdata *conn)
/* First shut down the SSL layer (note: this call will block) */
result = Curl_ssl_shutdown(conn, FIRSTSOCKET);
- if(result)
- return CURLE_FTP_SSL_CCC_FAILED;
+ if(result) {
+ failf(conn->data, "Failed to clear the command channel (CCC)");
+ return result;
+ }
/* Then continue as normal */
result = ftp_state_pwd(conn);