diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-02 06:25:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-02 06:25:41 +0000 |
commit | d1d417664ec5983265eabcab128628632d5a4a43 (patch) | |
tree | be8fd52845ca1b79e664abba978ea1138c88b9e6 | |
parent | 7d7e99104e38e168c5f9969d68651706846c04e8 (diff) |
Gisle Vanem fixed the check-order for FTPS and FTP.
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2094,10 +2094,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* Note: if you add a new protocol, please update the list in * lib/version.c too! */ - if(checkprefix("FTP", conn->gname)) { - strcpy(conn->protostr, "ftp"); - } - else if(checkprefix("GOPHER", conn->gname)) + if(checkprefix("GOPHER", conn->gname)) strcpy(conn->protostr, "gopher"); #ifdef USE_SSLEAY else if(checkprefix("HTTPS", conn->gname)) @@ -2105,6 +2102,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, else if(checkprefix("FTPS", conn->gname)) strcpy(conn->protostr, "ftps"); #endif /* USE_SSLEAY */ + else if(checkprefix("FTP", conn->gname)) + strcpy(conn->protostr, "ftp"); else if(checkprefix("TELNET", conn->gname)) strcpy(conn->protostr, "telnet"); else if (checkprefix("DICT", conn->gname)) |