summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2004-11-28 03:14:03 +0000
committermcbride <mcbride@openbsd.org>2004-11-28 03:14:03 +0000
commitd15f0d2fa229c79adc4ab15c662bcae4d8797862 (patch)
tree66399f9e4ff0466371189fabf9a4209937a03811
parentdon't hide the process context in rf_close_component(), since we may (diff)
downloadwireguard-openbsd-d15f0d2fa229c79adc4ab15c662bcae4d8797862.tar.xz
wireguard-openbsd-d15f0d2fa229c79adc4ab15c662bcae4d8797862.zip
Reverse bogus sc == NULL check in CARP_LOG(), from Max Laier.
-rw-r--r--sys/netinet/ip_carp.c4
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: "); \