summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2009-08-10 15:29:34 +0000
committerhenning <henning@openbsd.org>2009-08-10 15:29:34 +0000
commitb380f4b8f08737453e459a7e0eccaae7263dbb1d (patch)
treeaa22798dcde61f04098a296db95c188d2d6d97a3
parentwe need to null mcopy, gotos bite. theo and i both missed them, theo ok (diff)
downloadwireguard-openbsd-b380f4b8f08737453e459a7e0eccaae7263dbb1d.tar.xz
wireguard-openbsd-b380f4b8f08737453e459a7e0eccaae7263dbb1d.zip
7 years of
#if 1 reasonable #else bullshit required by some committee #endif are enough. theo ok
-rw-r--r--sys/netinet/ip_input.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index b289b5cadf9..787d6d0a716 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.169 2009/08/10 15:26:33 henning Exp $ */
+/* $OpenBSD: ip_input.c,v 1.170 2009/08/10 15:29:34 henning Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1562,7 +1562,6 @@ ip_forward(m, srcrt)
break;
case ENOBUFS:
-#if 1
/*
* a router should not generate ICMP_SOURCEQUENCH as
* required in RFC1812 Requirements for IP Version 4 Routers.
@@ -1570,11 +1569,6 @@ ip_forward(m, srcrt)
* or the underlying interface is rate-limited.
*/
goto freecopy;
-#else
- type = ICMP_SOURCEQUENCH;
- code = 0;
- break;
-#endif
}
mcopy = m_copym(&mfake, 0, len, M_DONTWAIT);