Remove pointless storing of the protocol as a string within the connectdata

struct, and instead use the already stored string in the handler struct.
This commit is contained in:
Daniel Stenberg
2009-12-17 15:45:04 +00:00
parent 10a11e3abe
commit 91d05903b4
4 changed files with 30 additions and 26 deletions

View File

@@ -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");