]> granicus.if.org Git - curl/commitdiff
url: Corrected get protocol family for FTP and LDAP
authorSteve Holme <steve_holme@hotmail.com>
Fri, 1 Apr 2016 06:24:39 +0000 (07:24 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 1 Apr 2016 06:24:39 +0000 (07:24 +0100)
Fixed copy/paste error from commit a5aec58726.

lib/url.c

index 9f073f320919a2dc4e4dc481c7afb560619a6119..1412644e7cf32d4eec0338ea933e3b07fe66142e 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -6144,7 +6144,7 @@ unsigned int get_protocol_family(unsigned int protocol)
 
   case CURLPROTO_FTP:
   case CURLPROTO_FTPS:
-    family = CURLPROTO_IMAP;
+    family = CURLPROTO_FTP;
     break;
 
   case CURLPROTO_SCP:
@@ -6161,7 +6161,7 @@ unsigned int get_protocol_family(unsigned int protocol)
 
   case CURLPROTO_LDAP:
   case CURLPROTO_LDAPS:
-    family = CURLPROTO_IMAP;
+    family = CURLPROTO_LDAP;
     break;
 
   case CURLPROTO_DICT: