aboutsummaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-05-05 15:49:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-05-05 15:49:43 +0200
commite34131db783336aa17fa0aa664635867459b2a85 (patch)
treeda9d24dbb53329dade737173e340618a509a8759 /lib/ldap.c
parent335dfa793c239283b0003d3f10739051c10ecb13 (diff)
SSL: check for SSL, not specific protocols
Code cleanup to check less for protocols and more for the specific relevant feature. Like if SSL is required.
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");