aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-08-26 09:34:41 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-08-26 12:26:21 +0200
commit822082d8327a41aafa4c6b7696bfcb8b56037cbf (patch)
treeb9039fd22a4fa686d45121f0418f601f4f988fc4
parent39ba8dd09b5f2883108d3ddf15ef61bb4cff437b (diff)
ftp_done: remove dead code
-rw-r--r--lib/ftp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 5aa9605d0..4c369973f 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3250,7 +3250,6 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
ssize_t nread;
int ftpcode;
CURLcode result = CURLE_OK;
- bool was_ctl_valid = ftpc->ctl_valid;
char *path;
const char *path_to_use = data->state.path;
@@ -3274,10 +3273,9 @@ static CURLcode ftp_done(struct connectdata *conn, CURLcode status,
/* the connection stays alive fine even though this happened */
/* fall-through */
case CURLE_OK: /* doesn't affect the control connection's status */
- if(!premature) {
- ftpc->ctl_valid = was_ctl_valid;
+ if(!premature)
break;
- }
+
/* until we cope better with prematurely ended requests, let them
* fallback as if in complete failure */
default: /* by default, an error means the control connection is