diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-11-28 03:14:04 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-11-28 03:14:04 +0000 |
commit | a9cf50d422795cc14d172967caeccbd9e99e0b51 (patch) | |
tree | 476e4042c4dd268e7a3f6afdebdd6e1fb142d0c9 /sys | |
parent | 5201ba6369f3651037481f2148751cc95ab804fe (diff) |
Reverse bogus sc == NULL check in CARP_LOG(), from Max Laier.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_carp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 780a61fe0ed..821dd9dc14a 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.70 2004/11/17 06:07:39 mcbride Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.71 2004/11/28 03:14:03 mcbride Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -147,7 +147,7 @@ struct carp_if { #define CARP_LOG(sc, s) \ if (carp_opts[CARPCTL_LOG]) { \ - if (sc == NULL) \ + if (sc) \ log(LOG_INFO, "%s: ", (sc)->sc_ac.ac_if.if_xname);\ else \ log(LOG_INFO, "carp: "); \ |