From b0c83f802761ffd9098c76a4d87c64892d5a4813 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 24 May 2011 15:30:28 +0200 Subject: Fix bad comparison in sdap_has_deref_support https://fedorahosted.org/sssd/ticket/876 --- src/providers/ldap/sdap_async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); -- cgit