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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user