diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-12-17 15:45:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-12-17 15:45:04 +0000 |
commit | 91d05903b498ce807b125a7c6a1ac820d21b0ab8 (patch) | |
tree | 5f6484a69077d29f522221bc75a27b738f33e90a /lib/ldap.c | |
parent | 10a11e3abe54c4b8ce537f84416092d7e7c7d8a4 (diff) | |
download | curl-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.c | 2 |
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"); |