summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/ip_carp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 07f293a..83fb9b9 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1128,7 +1128,7 @@ carp_iamatch(void *v, struct in_ifaddr *ia,
}
/* this should be a hash, like pf_hash() */
- index = isaddr->s_addr % count;
+ index = ntohl(isaddr->s_addr) % count;
count = 0;
TAILQ_FOREACH(vh, &cif->vhif_vrs, sc_list) {
OpenPOWER on IntegriCloud