cache: fix host length calculation
authorFelix Fietkau <nbd@openwrt.org>
Tue, 3 Jun 2014 23:17:46 +0000 (01:17 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 3 Jun 2014 23:17:49 +0000 (01:17 +0200)
commit6a432a41b9629b6e70a41308f6d9487acf6f4621
tree5dd711164a6181f01633a5d7312874dd56648c9b
parent3558e5d49d8560fe7a09ef2034c10615b83974f9
cache: fix host length calculation

The previous version was returning negative values for some records due
to unchecked name matching

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
cache.c