summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2013-04-03 12:26:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-04-04 23:57:36 +0200
commitbba9bb80671636886206f74549705329c42e4bcc (patch)
tree334f284acd0dbd8e4da8887c435f1332bab49ca6
parent69bcbaba75172b2bcb9292237092e206147dce8d (diff)
downloadding-libs-bba9bb80671636886206f74549705329c42e4bcc.zip
ding-libs-bba9bb80671636886206f74549705329c42e4bcc.tar.gz
ding-libs-bba9bb80671636886206f74549705329c42e4bcc.tar.xz
COLLECTION: Fix comparision
https://fedorahosted.org/sssd/ticket/1856
-rw-r--r--collection/collection_cmp.c2
1 files changed, 1 insertions, 1 deletions
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,