aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
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 69667fdf8..6733ef46b 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -206,7 +206,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done)
}
/* Get the URL scheme ( either ldap or ldaps ) */
- if(conn->given->protocol & CURLPROTO_LDAPS)
+ if(conn->given->flags & PROTOPT_SSL)
ldap_ssl = 1;
infof(data, "LDAP local: trying to establish %s connection\n",
ldap_ssl ? "encrypted" : "cleartext");