]> granicus.if.org Git - curl/commitdiff
ftp_done: remove dead code
authorDaniel Stenberg <daniel@haxx.se>
Fri, 26 Aug 2016 07:34:41 +0000 (09:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 Aug 2016 10:26:21 +0000 (12:26 +0200)
lib/ftp.c

index 5aa9605d0add10d65b5749e14d78c3895992f87d..4c369973fcc0e79bc1ed655ca06b60152bb4c26b 100644 (file)
--- 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