From 91d05903b498ce807b125a7c6a1ac820d21b0ab8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 17 Dec 2009 15:45:04 +0000 Subject: Remove pointless storing of the protocol as a string within the connectdata struct, and instead use the already stored string in the handler struct. --- lib/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ldap.c') 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"); -- cgit v1.2.3