Page MenuHomeFreeBSD

D32759.diff
No OneTemporary

D32759.diff

diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -304,7 +304,9 @@
#define DEMOTE_ADVSKEW(sc) \
(((sc)->sc_advskew + V_carp_demotion > CARP_MAXSKEW) ? \
- CARP_MAXSKEW : ((sc)->sc_advskew + V_carp_demotion))
+ CARP_MAXSKEW : \
+ (((sc)->sc_advskew + V_carp_demotion < 0) ? \
+ 0 : ((sc)->sc_advskew + V_carp_demotion)))
static void carp_input_c(struct mbuf *, struct carp_header *, sa_family_t);
static struct carp_softc

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 4:46 PM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15840717
Default Alt Text
D32759.diff (532 B)

Event Timeline