From bba9bb80671636886206f74549705329c42e4bcc Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Wed, 3 Apr 2013 12:26:01 +0200 Subject: COLLECTION: Fix comparision https://fedorahosted.org/sssd/ticket/1856 --- collection/collection_cmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collection/collection_cmp.c b/collection/collection_cmp.c index 61d2fcc..170ba08 100644 --- a/collection/collection_cmp.c +++ b/collection/collection_cmp.c @@ -85,7 +85,7 @@ int col_compare_items(struct collection_item *first, case COL_CMPIN_PROP_EQU: /* looking for exact match */ /* Compare hashes and lengths first */ - if ((first->phash == first->phash) && + if ((first->phash == second->phash) && (first->property_len == second->property_len)) { /* Collections are case insensitive, sorry... */ cmpres = strncasecmp(first->property, -- cgit