summaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-12-17 15:45:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-12-17 15:45:04 +0000
commit91d05903b498ce807b125a7c6a1ac820d21b0ab8 (patch)
tree5f6484a69077d29f522221bc75a27b738f33e90a /lib/ldap.c
parent10a11e3abe54c4b8ce537f84416092d7e7c7d8a4 (diff)
downloadcurl-91d05903b498ce807b125a7c6a1ac820d21b0ab8.tar.gz
Remove pointless storing of the protocol as a string within the connectdata
struct, and instead use the already stored string in the handler struct.
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 0152e668c..ec9252f56 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -200,7 +200,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done)
}
/* Get the URL scheme ( either ldap or ldaps ) */
- if(Curl_raw_equal(conn->protostr, "LDAPS"))
+ if(conn->protocol & PROT_SSL)
ldap_ssl = 1;
infof(data, "LDAP local: trying to establish %s connection\n",
ldap_ssl ? "encrypted" : "cleartext");