summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index eef35d2cbb5..29c0913c45b 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.23 1997/09/28 22:57:50 deraadt Exp $ */
+/* $OpenBSD: ip_output.c,v 1.24 1997/10/02 02:31:07 deraadt Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -262,9 +262,8 @@ ip_output(m0, va_alist)
/* Check if the SPI is invalid */
if (tdb->tdb_flags & TDBF_INVALID) {
- log(LOG_ALERT,
- "ip_output(): attempt to use invalid SA %08x/%x/%x\n",
- ntohl(tdb->tdb_spi), tdb->tdb_dst,
+ if (encdebug)
+ log(LOG_ALERT, "ip_output(): attempt to use invalid SA %08x/%x/%x\n", ntohl(tdb->tdb_spi), tdb->tdb_dst,
tdb->tdb_sproto);
m_freem(m);
RTFREE(re->re_rt);
@@ -358,7 +357,8 @@ ip_output(m0, va_alist)
exp = get_expiration();
if (exp == NULL) {
expbail:
- log(LOG_WARNING, "ip_output(): no memory for exp timer\n");
+ if (encdebug)
+ log(LOG_WARNING, "ip_output(): no memory for exp timer\n");
m_freem(m);
RTFREE(re->re_rt);
return ENOBUFS;