From 210adaf67150f2773e751fba6eabe99c5d7b52a5 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Fri, 5 Dec 2008 21:59:44 +0800 Subject: [PATCH] Correct the reversed comparison logic --- sys/netinet/ip_carp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 918550a721..95e542a953 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -506,7 +506,7 @@ carp_input(struct mbuf *m, ...) } /* Make sure that CARP header is contiguous */ - if (len < m->m_len) { + if (len > m->m_len) { m = m_pullup(m, len); if (m == NULL) { carpstats.carps_hdrops++; -- 2.41.0