]> source.dussan.org Git - rspamd.git/commitdiff
Fix radix comparision for partial masks.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Feb 2015 12:35:14 +0000 (12:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Feb 2015 12:35:51 +0000 (12:35 +0000)
src/libutil/radix.c

index a71c3abc9c571c74d79c49632270a8c79630dad2..a7ef12375952ab06c0e6656faa0f131db1b4ebce 100644 (file)
@@ -404,10 +404,6 @@ radix_compare_compressed (struct radix_compressed_node *node,
                                memcmp (node->d.s.key + skip, key + skip, shift - skip) != 0) {
                        return FALSE;
                }
-               else {
-                       /* We already know that we checked all elements prior to this one */
-                       return TRUE;
-               }
        }
 
        rbits = node->d.s.level % NBBY;