summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-24 15:30:28 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-24 11:42:38 -0400
commitb0c83f802761ffd9098c76a4d87c64892d5a4813 (patch)
tree581324873e741306c79ef78474dfde43fc051538
parent0fc334e130cb3ca30c29c2f5d8c378393ad0d072 (diff)
downloadsssd-b0c83f802761ffd9098c76a4d87c64892d5a4813.tar.gz
sssd-b0c83f802761ffd9098c76a4d87c64892d5a4813.tar.bz2
sssd-b0c83f802761ffd9098c76a4d87c64892d5a4813.zip
Fix bad comparison in sdap_has_deref_support
https://fedorahosted.org/sssd/ticket/876
-rw-r--r--src/providers/ldap/sdap_async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index f9b41d8b..0c354ae7 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -1827,7 +1827,7 @@ bool sdap_has_deref_support(struct sdap_handle *sh)
};
int i;
- for (i=0; deref_oids[i]; i++) {
+ for (i=0; deref_oids[i][0]; i++) {
if (sdap_is_control_supported(sh, deref_oids[i][0])) {
DEBUG(6, ("The server supports deref method %s\n",
deref_oids[i][1]));